Skip to content

Conversation

@jonbulz
Copy link

@jonbulz jonbulz commented Sep 19, 2025

cms_form backport from 16.0

Notable changes:

  • use HTML5 native datepicker in form template
  • fix issue with missing transient model fields after savepoint rollback

Changes and basic functionality tested locally. The tests need an update because odoo.http.Request is not present in Odoo v15

simahawk and others added 30 commits July 12, 2023 11:53
Test models are now set up during tests. Thanks @sbidoul for the pointer.
Test cases are now `SavepointCase` based to make tests faster.
* controller  catch specific exception
*  lookup must sudo
  since it's not accessible by end users
Workaround for the issue fixed here odoo/odoo#22384.
Basically all odoo templates that include the publisher widget
rely on the fact that  is always there
even if it's pointless in many cases (like a search form).
simahawk and others added 27 commits October 31, 2023 15:51
It's useless to reload defaults when they are already loaded in form_data
or overridden by specific values passed for form_data at form_init.
The field wrapper should toggle the required class.
Signed-off-by simahawk
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/
You can now enable and optional confirm modal before submitting a wizard.
Currently translated at 99.2% (127 of 128 strings)

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/it/
Currently translated at 100.0% (128 of 128 strings)

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/es/
Handy to force redirect down the stack.
Currently translated at 100.0% (128 of 128 strings)

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/it/
Currently translated at 35.1% (45 of 128 strings)

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/ca/
Signed-off-by simahawk
Signed-off-by simahawk
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/
Currently translated at 100.0% (132 of 132 strings)

Translation: website-cms-16.0/website-cms-16.0-cms_form
Translate-URL: https://translation.odoo-community.org/projects/website-cms-16-0/website-cms-16-0-cms_form/it/
@jonbulz
Copy link
Author

jonbulz commented Sep 25, 2025

@simahawk it seems some dependencies are also missing in the 15.0 branch. I can open other PRs for the backports of those modules as well, if that helps

@simahawk
Copy link

simahawk commented Oct 6, 2025

Great to see some activity here :)
Yes, you have to migrate dependencies first. One PR each please 🙏

@simahawk
Copy link

simahawk commented Oct 6, 2025

2 more recommendations:

  • please use rebase + cherry-pick instead of merges
  • if you do any fix (eg: the native date picker) please use a separate commit so that we can fwd/backport if needed
    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.