Repository navigation
[20.0][IMP] openupgrade_scripts: fill full apriori - #6077
MiquelRForgeFlow wants to merge 1 commit into
Conversation
| "crm.lead2opportunity.partner": "crm.lead2opportunity.partner.mass", | ||
| "hr.leave.type": "hr.work.entry.type", | ||
| "ir.model.access": "ir.access", | ||
| "ir.rule": "ir.access", |
There was a problem hiding this comment.
well, I think this will cause messy analysis files. Without this, we get all ir.rule records in one block where we can write NOTHING TO DO and are done with it. With this merge, we get them spread out between all the other ir.access records, and have to deal with them line by line.
that's different from ir.model.access, where v20 usually reuses the xmlid for the ir.access entry.
There was a problem hiding this comment.
A priori, I disagree. Why do you have to handle them line by line? What do you mean? I think we only should care if they have changed from noupdate = 1 to 0, and vice versa, which the analysis already provides. And also, if the xmlid name changes, which then the analysis already provides. We should not care in that part if the "ir.access" xmlid name comes from "ir.model.access" or "ir.rule", right? The migration scripts to handle the migration of "ir.model.access" and "ir.rule" don't care about the explicit listed xmlids in the analysis file.
With this merge, we get them spread out between all the other ir.access record
Have you tested how it looks merged? Maybe with an example to compare, a visual thing, we could check which option is better.
FerDeNetlab
left a comment
There was a problem hiding this comment.
Drafted with AI assistance (Claude Opus 5.5), reviewed by me.
| "account_add_gln": "account", | ||
| "account_peppol_response": "account_peppol", | ||
| "base_iban": "account", | ||
| "base_vat": "base", |
There was a problem hiding this comment.
base_vat was split: the format checks went to base, but VIES (vies_valid, vat_check_vies, the cron) went to the new l10n_eu_account_vies. Merging into base drops VIES on databases that use it; renaming it (what we did locally) installs VIES on every database that had base_vat, also outside the EU. Maybe merge into base and install l10n_eu_account_vies in a script when a company has vat_check_vies? What would you prefer?
There was a problem hiding this comment.
Maybe merge into
baseand installl10n_eu_account_viesin a script when a company hasvat_check_vies?
Exactly.
b0d8189 to
8e0a891
Compare
8e0a891 to
c5439b7
Compare
|
+1 for installing The same kind of split exists for apriori can't express a split, so I guess this belongs in the One interaction with #6071, which renames OCA's |
|
Follow-up with a tested fix, and a correction. I tried this on a local bench (#6068 at 1faabaf, which includes #6046, plus the change of OCA/openupgradelib#468), migrating Correction: the table is not dropped, since openupgrade_framework never drops tables or columns. But without a fix, What works, in
With that, the tracking values are kept, the action, menu and views keep their ids, and the only field deleted is
I can open this as a PR for |
|
@mauro2306 thanks, I can confirm it on our bench: Please go ahead with the Drafted with AI assistance (Claude Opus 5.5), reviewed by me. |
.