Skip to content

[ADD] l10n_fr: cleanup obsolete res.partner.siret + orphan form view#73

Open
dnplkndll wants to merge 3 commits into
19.0from
19.0-fix-l10n-fr-cleanup
Open

[ADD] l10n_fr: cleanup obsolete res.partner.siret + orphan form view#73
dnplkndll wants to merge 3 commits into
19.0from
19.0-fix-l10n-fr-cleanup

Conversation

@dnplkndll

Copy link
Copy Markdown

Migration work on the ledoent/OpenUpgrade fork (internal review). Rebased onto current 19.0.

The 18.0 l10n_fr module added res.partner.siret (a French SIRET tax
identifier) plus a partner form inheritance view (res_partner_form_l10n_fr)
that exposed it. Both are DEL per upgrade_analysis.txt:
res.partner.siret (char) : DEL
ir.ui.view: res_partner_form_l10n_fr : DEL

The script directory previously contained only the auto-generated
upgrade_analysis.txt. The migration relied on Odoo's standard upgrade flow
to clean up the DEL field and DEL view. That doesn't actually prune them —
the stale ir_model_fields row and orphan view (with arch_db retaining
) survive, and trip cross-cutting view validation
when later modules' data XML loads (reproduced on a fresh 18 → 19 install
with the loyalty / hr / partner_autocomplete companion fixes applied —
l10n_ae/data/account_tax_report_data.xml:3 then raises 'Field "siret"
does not exist in model "res.partner"').

Add pre-migration cleanup_obsolete_l10n_fr_siret using
openupgrade.delete_records_safely_by_xml_id over both the field xml_id
and the view xml_id, plus a companion upgrade_analysis_work.txt
annotating the analysis blocks.

@dnplkndll dnplkndll force-pushed the 19.0-fix-l10n-fr-cleanup branch 4 times, most recently from 65392a5 to 8afe465 Compare May 30, 2026 03:16
@dnplkndll dnplkndll force-pushed the 19.0-fix-l10n-fr-cleanup branch 3 times, most recently from ab89c28 to f870e11 Compare June 5, 2026 19:53
@dnplkndll dnplkndll force-pushed the 19.0-fix-l10n-fr-cleanup branch 3 times, most recently from 39feb8d to fd1b1d7 Compare June 17, 2026 12:44
The 19.0 replacement for the dropped res.partner.siret is core
company_registry (l10n_fr_pdp validates SIREN/SIRET on it); without the
copy real identifiers strand in an orphan column. Also drop the
ineffective field-xmlid delete (the helper can't unlink non-manual
fields; the module update prunes the row itself).
@dnplkndll dnplkndll force-pushed the 19.0-fix-l10n-fr-cleanup branch from fd1b1d7 to 2935812 Compare June 19, 2026 11:58
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