Skip to content

[20.0][MIG] base - #6068

Open
hbrunn wants to merge 115 commits into
OCA:20.0from
hbrunn:20.0-base
Open

hbrunn wants to merge 115 commits into
OCA:20.0from
hbrunn:20.0-base

Conversation

@hbrunn

@hbrunn hbrunn commented Oct 27, 2026

Copy link
Copy Markdown
Member

depends on:

I'll rebase after those are merged and the

PR has been merged and generated the first updated analysis

legalsylvain and others added 30 commits September 29, 2026 05:34
- Apply new copier template. (from v1.14.2 to v1.18 : replace setup by pyproject.toml, replace black by ruff, ...)
- Disable .github/workflows/test.yml because the openupgrade is not initialized yet
- add new empty modules160-170.rst file
-This commit remove unecessary patch
-Check if test exist then execute it in the test.yml
-Remove the test loader from patch, detail at
OCA#4327 (comment)
hbrunn and others added 23 commits September 29, 2026 16:02
@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts mod:openupgrade_framework Module openupgrade_framework series:20.0 labels Oct 27, 2026
@hbrunn

hbrunn commented Oct 27, 2026

Copy link
Copy Markdown
Member Author

/ocabot migration base

@OCA-git-bot OCA-git-bot added this to the 20.0 milestone Oct 27, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 27, 2026
1 of 6 tasks

@FerDeNetlab FerDeNetlab left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Tested on our 19.0 db (131 modules after the upgrade, with our module scripts on top): same result as with our own base scripts, apart from the line below. load_data of noupdate_changes.xml needs OCA/openupgradelib#468 on 20.0.

Drafted with AI assistance (Claude Opus 5.5), reviewed by me.

Comment on lines +190 to +193
WHERE
ir_model_fields.model_id=ir_model.id
AND
ir_model.state='manual'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This only covers fields of custom models. Manual fields on standard models lose their index: the analytic plan columns (account.analytic.line.x_plan2_id, project.project.x_plan2_id, ...) are index=True in our 19.0 db and end up with index=NULL. The database index itself is kept, only ir.model.fields is wrong. With this change all 4 come out as btree.

Suggested change
WHERE
ir_model_fields.model_id=ir_model.id
AND
ir_model.state='manual'
WHERE
ir_model_fields.model_id=ir_model.id
AND
(ir_model.state='manual' OR ir_model_fields.state='manual')

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_framework Module openupgrade_framework mod:openupgrade_scripts Module openupgrade_scripts series:20.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.