Skip to content

[20.0][IMP] openupgrade_scripts: mark ir.model.access as merged into ir.access for the purposes of upgrade_analysis - #6076

Open
hbrunn wants to merge 1 commit into
OCA:20.0from
hbrunn:20.0-apriori-ir.model.access
Open

hbrunn wants to merge 1 commit into
OCA:20.0from
hbrunn:20.0-apriori-ir.model.access

Conversation

@hbrunn

@hbrunn hbrunn commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

I don't actually merge those models in the base migration because this would cause a lot of issues and make the migration much more complex, but upgrade_analysis should treat them as equal because it creates a lot of unhelpful entries in the work files. Will also cause a bunch of modules to be marked as "No DB changes" if that's the only change

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:20.0 labels Nov 3, 2026
# only used here for upgrade_analysis
merged_models = {
# odoo
"ir.model.access": "ir.access",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"ir.rule": "ir.access",
this too

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? typically, Odoo reuses the xmlid of the ir.model.access record

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here doesn't say merging xmlids, it's about the model. The commit odoo/odoo@77c17e7 explicitly says that ir.rule is changed to ir.access. And in odoo/odoo@26cc6ac, ir.rule is removed.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, this is just to compare, to get a nice analysis. Of course, in the migration scripts, we should probably do something, an script, but not pure merging.

@MiquelRForgeFlow

Copy link
Copy Markdown
Contributor

In fact, I have the full apriori filled. Do you prefer for me toI push here, or for me to wait this is merged and then I made another PR?

@hbrunn

hbrunn commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

I'd suggest a PR as we seem to disagree what the content should be

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants