odoo / odoo

Odoo. Open Source Apps To Grow Your Business.

Home Page:https://www.odoo.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inability to update data records in inherited module

gohigh19 opened this issue · comments

Impacted versions: 16.0

Steps to reproduce:

  1. Inherit the Recruitment Module in a Custom Module.
  2. Try to updating the xml records by defining now one with the XML ID.
  3. Also Try updating the xml security group data by defining a new one with the same XML ID.

Current behavior:
It refuse to update.

Expected behavior:
You suppose to see change in the data

commented

It will depend on the noupdate="1" is set on the target xml that you want to update.

It will depend on the noupdate="1" is set on the target xml that you want to update.

I set noupdate="0" in the target xml just to see but it still wouldn't update.

Hello @gohigh19
If the parent record was declared as noupdate, you need to change that in the ir_model_data table (see
https://github.com/odoo/upgrade-util/blob/d4a608c0accd70f1eefa1760f5ea2811d9ff61c8/src/util/records.py#L733-L758)
Cheers