Friday, April 26, 2024
3 changes · master
Enhancements to existing features
Creating a contract from the employee form now opens the contract screen in the main view instead of a smaller intermediate window. This gives users more space to see and enter all contract details without extra scrolling.
Original PR description
The smart button in the employee form view is now opening the creation of contract in full view instead of a transitive view to be able to show all the infos without having to scroll task-3818439 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The document spreadsheet test suite was adjusted to stay compatible with an updated spreadsheet library. This helps ensure document spreadsheet features continue to be validated reliably without changing day-to-day user workflows.
Odoo now checks for circular relationships in records using a more efficient database query. This helps prevent invalid loops in areas like payroll, knowledge articles, and marketing automation while improving reliability and performance behind the scenes.
Original PR description
Implement checking recursion using a single recursive SQL query. The query starts from self.ids and follows a relationship. We can use the same query for both many2many and many2one relationships. _has_cycle now will not return False if some reachable records are part of a loop and are not in self.ids. This is acceptable because this method is called after modifications with ids of changed records and we can suppose that unchanged records did not introduce a loop. https://github.com/odoo/odoo/pull/162656