Skip to content

[OU-ADD] l10n_it: rename_xmlids for l10n_it_edi_withholding consolidation#35

Draft
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n_it-pre-migration
Draft

[OU-ADD] l10n_it: rename_xmlids for l10n_it_edi_withholding consolidation#35
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n_it-pre-migration

Conversation

@dnplkndll
Copy link
Copy Markdown

Sibling fix to #34 (the l10n_it_edi_ndd consolidation into l10n_it_edi). The 19.0 l10n_it module absorbs records that shipped under l10n_it_edi_withholding in 18.0 — the withholding-tax module is folded into the base Italian-localization module.

Records renamed via rename_xmlids:

  • 1 account.report: withh_tax_report_it
  • 1 account.report.column: withh_tax_report_balance
  • 4 account.report.expression: enasarco/withh × purchase/sale × _line_tag
  • 4 account.report.line: enasarco/withh × purchase/sale × _line

Without this rename, customer references to the previous tax-report records (e.g. tag_ids on account.tax pointing at the withholding line definitions) would be orphaned when Odoo's 19.0 install creates fresh ir_model_data rows pointing at new res_ids.

The broader 19.0 tax-report refactor under l10n_it's own xmlids (~50 NEW expressions/lines + ~110 DELs) is standard module-data XML handled by Odoo's update_db. No customer data references those records directly. The DEL of l10n_it_law_reference char on account.tax is informational text — standard module-upgrade flow handles the column drop.

Draft fork PR — for review before upstreaming to OCA/OpenUpgrade.

@dnplkndll dnplkndll changed the title [19.0][OU-ADD] l10n_it: rename_xmlids for l10n_it_edi_withholding consolidation (10 records) [OU-ADD] l10n_it: rename_xmlids for l10n_it_edi_withholding consolidation May 26, 2026
…tion

rename_xmlids moves 10 records' ir_model_data ownership from
l10n_it_edi_withholding to l10n_it (the withholding-tax module folds
into base l10n_it in 19.0): 1 account.report + 1 column + 4
expressions + 4 lines. Without this, customer references via
account.tax.tag_ids to the withholding line tags would dangle.
@dnplkndll dnplkndll force-pushed the 19.0-mig-l10n_it-pre-migration branch from e5783f8 to 1cbc3c9 Compare May 26, 2026 16:54
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.

1 participant