Friday, September 18, 2020
1 change · master
Resolved issues and error corrections
Fixed an issue where related list entries added in settings screens could disappear after saving. This helps users trust that configuration changes are retained correctly and reduces repeat data entry.
Original PR description
https://www.odoo.com/web#id=2274168&action=4043&model=project.task&view_type=form&cids=1&menu_id=4720 Before this, a one2many relation in a settings view would not work. After the save, the added data in the field would be cleared. Now, the data is still present. With the change made to BaseSettingsModel the 'base_settings_tests' need to only use the res.config.settings as fake data model. (relations towards other models are still ok though). The test file is therefore altered to comply to this new rule. Note that this commit only validates the good behavior on the frontend side, as a one2many relation towards a res.settings can't be done simply in python as it is a transient model (forbidden).