Daily updates from Odoo
Tuesday, May 15, 2018
1 change · master
Code cleanup and technical improvements
This update removes redundant preset values from fields that already get their value from related records. It simplifies maintenance across several business areas without changing expected user workflows or visible features.
Original PR description
**Description of the issue/feature this PR addresses:** If I am not wrong, if a field is related then it doesn't need to have a defined default. Thus, this PR deletes all defined defaults I found on related fields. **Current behavior before PR:** Some related fields have unnecessary defined defaults. **Desired behavior after PR is merged:** Some related fields doesn't contain unnecessary defined defaults. **Additionally:** Perhaps when the related fields are setup we could detect if they have a defined default and if true then it can be shown a `_logger.info` with a message like `Field X is related, it doesn't need a default.` -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr