Skip to content

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

Open
sergijPf wants to merge 97 commits into
OCA: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 into
OCA: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

@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
22 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

simahawk and others added 27 commits May 21, 2026 13:47
Rely on specific method as per validator and code executor.
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/
@sergijPf sergijPf force-pushed the 19.0-mig-edi_exchange_template_oca branch from 44d0990 to 23ff6e9 Compare May 21, 2026 10:47
@OCA-git-bot OCA-git-bot added series:19.0 mod:edi_exchange_template_oca Module edi_exchange_template_oca labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:edi_exchange_template_oca Module edi_exchange_template_oca series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.