anthem icon indicating copy to clipboard operation
anthem copied to clipboard

Fix define_settings method

Open guewen opened this issue 6 years ago • 0 comments

In 13.0, the method ResConfigSettings.execute() [0] reset odoo env after installing/uninstalling addons, after this, computed fields misbehave (for instance, after a record creation, they would return an empty value or a CacheMiss)

In 13.0, we can call set_values() which does what we want, before this version, we have to keep calling execute() (which doesn't have the mentioned issue) because it sets the default values and the groups.

[0] https://github.com/odoo/odoo/blob/054d4bc6bc219bcc6b0a64265e8d7e9c7423dbc8/odoo/addons/base/models/res_config.py#L633-L637

guewen avatar Jan 14 '20 11:01 guewen