summaryrefslogtreecommitdiff
path: root/odoo/addons/test_new_api
diff options
context:
space:
mode:
authorAnh Thao Pham (pta) <pta@odoo.com>2020-05-13 06:32:00 +0000
committerAnh Thao Pham (pta) <pta@odoo.com>2020-05-13 16:36:59 +0000
commitdbd87ec4648a18ebf3eb79e11214cf0ee5d1f5d2 (patch)
tree0f75ba7b455fe6970cc10cb11ba572e05131cbd8 /odoo/addons/test_new_api
parent27c3244116155cef3bb8477bc1e644aecc2c1cb8 (diff)
[FIX] base: fix import of studio customizations
- Activate Studio from dashboard of database A - Export studio customizations - Activate Studio from dashboard of database B - Import studio customizations previously exported The imported data don't have the boolean studio field set to True. Since v12, when loading a module, a query is executed to create or update XML ids. The create and write methods are not called anymore. Therefore the overridden create and write methods of "ir.model.data" defined in Studio module are not called and thus cannot set the studio field to True. The generation of the query creating XML ids has been moved to a private method allowing another module like Studio to override it. opw-2245578 closes odoo/odoo#51203 X-original-commit: 198ab837e466f3155ea1c3b35811b981b1c1e537 Related: odoo/enterprise#10586 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Diffstat (limited to 'odoo/addons/test_new_api')
0 files changed, 0 insertions, 0 deletions