Skip to content

[19.0][FIX] l10n_mx_edi_addenda_kuehne_nagel: Adding pre-migration script - #63

Merged
max3903 merged 1 commit into
amxodoo:19.0from
ursais:19.0-mig-l10n_mx_edi_kuehne_nagel
Aug 27, 2026
Merged

max3903 merged 1 commit into
amxodoo:19.0from
ursais:19.0-mig-l10n_mx_edi_kuehne_nagel

Conversation

@hector-fe-dev

Copy link
Copy Markdown
Contributor

Summary

  • Add a 19.0.1.0.1 pre-migration for l10n_mx_edi_addenda_kuehne_nagel, matching Audi/Ford/MABE/VW/Whirlpool.
  • Databases upgraded from 17.0 still have xmlid l10n_mx_edi_addenda_kuehne_nagel.l10n_mx_edi_addenda_kuehne_nagel on ir.ui.view. On 19.0 the same xmlid is l10n_mx_edi.addenda, so module load fails with ParseError.
  • The script removes/remaps that stale xmlid before the data file loads, then recreates the addenda record.
  • Bump the module version to 19.0.1.0.1 so the script actually runs.

Test plan

  • Upgrade a 17.0 DB that already had KN installed.
  • Confirm the log shows Running upgrade [>19.0.1.0.1] pre-migration and removed stale ir.ui.view xmlid.
  • Confirm the module loads (no found record of different model ir.ui.view).
  • Assign Addenda Kuehne Nagel on a customer (Invoicing → Addendas & Complementos) and create an invoice.
  • Fresh install still works (pre-migration is a no-op when there is no old xmlid).

@hector-fe-dev
hector-fe-dev requested a review from max3903 August 27, 2026 20:33
@max3903 max3903 added this to the 19.0 milestone Aug 27, 2026
@max3903 max3903 added the bug Something isn't working label Aug 27, 2026
@max3903 max3903 self-assigned this Aug 27, 2026
@max3903 max3903 added the mod:l10n_mx_edi_addenda_kuehne_nagel l10n_mx_edi_addenda_kuehne_nagel label Aug 27, 2026
@max3903 max3903 changed the title [19.0][Fix] l10n_mx_edi_addenda_kuehne_nagel: Adding premigration script [19.0][FIX] l10n_mx_edi_addenda_kuehne_nagel: Adding premigration script Aug 27, 2026
@max3903 max3903 changed the title [19.0][FIX] l10n_mx_edi_addenda_kuehne_nagel: Adding premigration script [19.0][FIX] l10n_mx_edi_addenda_kuehne_nagel: Adding pre-migration script Aug 27, 2026
@max3903
max3903 merged commit 1b25a9d into amxodoo:19.0 Aug 27, 2026
4 checks passed
@max3903
max3903 deleted the 19.0-mig-l10n_mx_edi_kuehne_nagel branch August 27, 2026 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working mod:l10n_mx_edi_addenda_kuehne_nagel l10n_mx_edi_addenda_kuehne_nagel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants