odoo/upgrade-util#8
Created by Erik Ludescher (ERL)
Merged
at 4958d6bb366e056ca54df973f1b9c7ebdbd22ff7
Statuses:
- ci/runbot: Test upgrades between stable versions
- ci/upgrade_enterprise: Test upgrades for enterprise master
- label
- odoo-dev:master-custom-transient-models-access-erl
- head
- 9dd61af8246f55acdcd66a18d64fd7379edd974e
- merged
- 2 years ago by Upgrade, Christophe Simonis (chs)
| odoo/upgrade-util | |
|---|---|
| master | #8 |
[FIX] util/orm.py: fix `custom_module_field_as_manual` transient access
From Odoo version 14.0 transient models require access rights instead of
implicit access (see related odoo/odoo#43306). This can lead to access
errors in custom_module_field_as_manual, particularly in the upgrade
TestCrawler, leading to blocked upgrades.
To reproduce:
- have a v13 db with a custom menu which opens a custom model's view,
having a relational field (e.g. one2many) to a custom transient model,
and have existing records
- run the upgrade test prepare
- upgrade to v14
- run the upgrade test check, the TestCrawler will fail with an
AccessError
To fix that, create temporary access rights for custom transient models
while using the context manager.
upg-1157201