Friday, November 20, 2020
4 changes · master
Enhancements to existing features
This update lets Odoo mark certain mail and HR data fields as mandatory, helping prevent incomplete or invalid records from being saved. It improves reliability behind the scenes by catching missing required values earlier in the process.
Original PR description
Fields can now be marqued as required inside a field definition. If the field
value is `undefined` or updated to `undefined`, an error will be throw.
```
stringifiedDomain: attr({
default: '[]',
required: true,
}),
```
task-2323665Approval records now mark key identifier fields as required when they are created locally. This helps prevent incomplete approval data and reduces the risk of record creation issues for users working with approvals.
The Appraisal app now displays goal form field values more cleanly on mobile devices. This makes reviews easier to read and use on smaller screens and helps avoid a mobile status button display error.
Original PR description
PURPOSE
Improve Mobile UI of Appraisal
SPECIFICATIONS
Goals Form
Appraisal Form
If using the Status button => Error:
Uncaught Error: Please use show on visible elements
Traceback:
Error: Please use show on visible elements
at Tooltip.show
at Tooltip.$.fn.tooltip.Constructor.show
LINKS:
PR - #14869
TaskID - 2348528This update improves how several Odoo apps validate records when multiple items are created or updated at once. It reduces the risk of validation errors, removes duplicate checks, and improves performance in affected workflows without changing day-to-day features.
Original PR description
PURPOSE
Perform a cleaning of constraints in various applications to improve
coding style and performances.
SPECIFICATIONS
Support multi recordsets. Otherwise constraints may crash or
be incorrectly applied when creating or updating recordsets
containing more than one item.
Improve performances
* early raise if a constraint is invalid; avoid looping on whole
recordset if not necessary;
* use ORM methods completely (notably _check_recursion
allowing batch directly);
* remove duplicates when having both python and SQL constraints;
* avoid unnecessary calls, notably ref in loops;
LINKS
Task Id: 2328664
COM PR: odoo/odoo#55525
ENT PR: odoo/enterprise#12250