Daily updates from Odoo
Friday, July 8, 2022
3 changes
Enhancements to existing features
Attachment preview handling has been updated so it can be reused more easily in newer form screens. This supports a smoother, more consistent experience when users view documents such as invoices and accounting attachments.
Original PR description
\* = account_accountant, account_invoice_extract This will allow using the component directly into the new Owl form. task-2886642 https://github.com/odoo/odoo/pull/95436
This update adjusts automated tests so they no longer try to enter values into fields that a user cannot see. This better reflects real user behavior and prepares the system for a future change where restricted fields are removed from views instead of merely hidden.
Original PR description
In the web client, in a real use case, it's not possible to write on fields which are invisible, as it's not possible to write on fields which are readonly. This is a first step in the goal to change…
In the web client, in a real use case, it's not possible to write on fields which are invisible, as it's not possible to write on fields which are readonly. This is a first step in the goal to change the behavior of the `groups=` attribute in the back-end views, to remove them for the view instead of making them invisible. This is mainly to reduce the diff of the revision that will introduce the mentioned above behavior change. As nodes with `groups=` will be removed from the view when the user doesn't have the group, it's no longer possible to set a value on a field having a `groups=` the user doesn't have in the `Form` test class, as the field will no longer be at all in the view. However, these unit tests shouldn't have been able to set values on invisible fields in the first place. This revision therefore aims to correct the unit tests setting value on fields which were invisible because the user executing the test was not part of the required group(s) for these fields to be visible in the view.
The payroll contract workflow now supports part-time working schedule changes for companies outside Belgium. Belgian companies keep their existing read-only behavior, while non-Belgian companies can manage working schedules directly on the contract, making the feature usable across more countries.
Original PR description
The current working schedule change wizard has specific belgian rules attached to it. This prevents using the change workin schedule feature in other countries. Specification: - For companies not in Belgium, show a part time tab on the contract - If the company is Belgian, the tab is read only - If the company is not Belgian, the tab allows to change the working schedule on the contract task-2768558