Friday, September 18, 2020
2 changes · master
Enhancements to existing features
This update adds a direct shortcut from an employee record to their work entries, making payroll-related information easier to find. It also improves work entry search, shows work entry types on work schedules, clarifies that validated entries cannot be edited, and warns users when changing an employee's company.
Original PR description
TaskID: 2337204 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
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).