Skip to content

[19.0][MIG] edi_exchange_template_oca: Migration to 19.0#250

Open
sergijPf wants to merge 97 commits intoOCA:19.0from
DeineTuer-GmbH:19.0-mig-edi_exchange_template_oca
Open

[19.0][MIG] edi_exchange_template_oca: Migration to 19.0#250
sergijPf wants to merge 97 commits intoOCA:19.0from
DeineTuer-GmbH:19.0-mig-edi_exchange_template_oca

Conversation

@sergijPf
Copy link
Copy Markdown

few changes done as per 19.0:

  • replace odoo.fields.first(), removed in core;
  • remove 'nocopy' param in safe_eval(), no more exists;
  • odoo_test_helper.FakeModelLoader replaced with _setup_env(), done similar way to edi_core_oca;
  • remove string/expand attributes for search view (edi_exchange_template_output_view_search), causing failure

simahawk and others added 30 commits March 25, 2026 12:27
All the other main methods start with 'exchange_'.
Make generate respect this convention.
weblate and others added 24 commits March 25, 2026 12:27
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-framework-18.0/edi-framework-18.0-edi_exchange_template_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_exchange_template_oca/
Currently translated at 100.0% (35 of 35 strings)

Translation: edi-framework-18.0/edi-framework-18.0-edi_exchange_template_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_exchange_template_oca/it/
If no explicit code is passed, it must use the code of the type
otherwise it will lookup for the 1st matching template by backend type.
Relying on the code by convention was fragile for many reasons.
Most important:

1. users have to remember about this convention
2. is not clear which template is going to be used by a specific type

With this change we make it more clear and deprecate the old behavior.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-framework-18.0/edi-framework-18.0-edi_exchange_template_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_exchange_template_oca/
Currently translated at 100.0% (41 of 41 strings)

Translation: edi-framework-18.0/edi-framework-18.0-edi_exchange_template_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_exchange_template_oca/it/
Fix the behavior according to the feature ported from v14
and drop the deprecated lookup by code.
It slows down test suites by creating too many things when not needed.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: edi-framework-18.0/edi-framework-18.0-edi_exchange_template_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_exchange_template_oca/
Currently translated at 100.0% (42 of 42 strings)

Translation: edi-framework-18.0/edi-framework-18.0-edi_exchange_template_oca
Translate-URL: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_exchange_template_oca/it/
@etobella
Copy link
Copy Markdown
Member

/ocabot migration edi_exchange_template

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Mar 25, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Mar 25, 2026
20 tasks
@etobella
Copy link
Copy Markdown
Member

/ocabot rebase

@OCA-git-bot
Copy link
Copy Markdown
Contributor

@etobella The rebase process failed, because command git push --force DeineTuer-GmbH tmp-pr-250:19.0-mig-edi_exchange_template_oca failed with output:

remote: Repository not found.
fatal: repository 'https://github.com/DeineTuer-GmbH/edi-framework/' not found

@etobella
Copy link
Copy Markdown
Member

/ocabot migration edi_exchange_template_oca

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.