Daily updates from Odoo
Friday, September 9, 2022
18 changes
Enhancements to existing features
Project fields in field service tasks and planning lists are no longer clickable from list views. This reduces unnecessary navigation to project configuration screens during day-to-day work.
Original PR description
Before this commit, the project field in task and
planning.slot{.template} models is clickable in list view of those models.
This commit prevents to open the form view in the list view since the form view of project is now more a view to configuration the project and so once the configuration is done, the user will not always need to go to that view.The Accounting Import Guide now includes breadcrumbs to make it easier for users to understand where they are and navigate back. This improves usability while keeping the page focused by hiding unnecessary control panel elements.
Original PR description
Currently, the Accounting Import Guide page does not have breadcrumbs. Adding a controlpanel with breadcrumbs for easier navigation, hiding the rest of the elements in the controlpanel.
This update tidies internal layout definitions used by Approvals and Sign activity views. It prepares the codebase for future cleanup without changing business workflows or adding visible features.
Original PR description
In preparation of future clean up. - remove useless class o_activity_link - move d-flex from o_activity_title_entry to template - move align-items-baseline from o_activity_title_entry to template https://github.com/odoo/odoo/pull/99824
Customized financial reports now use a dedicated handler structure instead of mixing all custom behavior directly into every report. This reduces the risk of internal naming conflicts and makes future country-specific and accounting report customizations easier to maintain without changing the user experience.
Original PR description
In Reportalypse, custom reports use fields to refer to functions allowing customizing different behaviors of the engine. With this, all account.report models contain all the functions of all the custom reports, leading to possible name clashes if the functions aren't properly prefixed. We can improve that a little: instead of having multiple fields, we use but one, referring to an AbstractModel inheriting from a new AbstractModel called account.report.custom.handler. This AbstractModel simply contains the different functions that can be overridden, and its subclasses are responsible to do so. In the code, instead of calling _get_custom_report_function, we check whether there is a custom handler for the report, and call the right function on it. task-2954761
The Knowledge app’s sharing prompt now opens links in a new browser tab so users can keep their current work in place. Its portal text is also smaller, making the prompt less distracting while still encouraging sharing.
Original PR description
Purpose ======= Improve the knowledge virality UI done in Task-2936725. Specifications ============== Instead of redirecting the user on their current tab, open a new tab to keep what they were doing. Reduce the portal virality UI text size to make it more discrete. Task-2976493
This change reduces the amount of field information sent to the web client so it receives only what it needs. This can improve efficiency and page loading behavior, with a small related adjustment in Studio.
Original PR description
See the related commit in odoo/odoo for more details.
The Luxembourg reporting module’s expected test results were updated to match current test data. This helps keep automated checks aligned and reduces false alarms during quality validation.
Original PR description
See related community PR.
Resolved issues and error corrections
Creating a new payslip no longer triggers an error when no employee has been selected yet. Time off deferment warnings are now shown whenever relevant time off exists, helping payroll users continue their work without interruption.
Original PR description
After https://github.com/odoo/enterprise/pull/30468, it was decided to show the time off to defer warning in the form view only if the related employee of the payslip had some time off to defer. However, when creating a payslip, we don't have an employee yet and a traceback is shown. This commit reverts this behavior. So if there is a time-off to defer, the warning will be shown everytime. task-2976064
Users can now send signature requests even when no fields have been added to the document. This prevents an error message and keeps the signing workflow moving smoothly.
Original PR description
Sending without any added fields now works.
This fix polishes the user experience and visual layout of subscription-related sales screens. It helps sales and subscription users work with clearer, more consistent forms, reducing friction in day-to-day subscription management.
Original PR description
Follow up of https://github.com/odoo/enterprise/commit/878e1b0d7ca0dfd74c446b335c4ea92a22adfa47
The subscription app now includes a direct menu link to recurrence settings. This makes it easier for users to find and manage recurring subscription options without navigating through less obvious screens.
Original PR description
Add link to recurrence in menu
Administrators now receive the expected app management rights when installing an app, so they can access it immediately without manually updating their own user permissions. This keeps app permission behavior consistent across enterprise apps and reduces setup friction.
Original PR description
When the admin installs an app, he should see it directly, without having to give himself the app rights on his user form. This enterprise commit doesn't really change anything, but harmonizes the definition of app manager groups between the different apps. Finetuning of #27595 Task ID - 2936569
Code cleanup and technical improvements
The dashboard pie chart component was modernized to use the newer interface framework, helping keep the product easier to maintain. A related barcode widget issue was corrected to avoid relying on outdated internal data, reducing the risk of interface errors.
Miscellaneous changes
When you have some POS access rights and no accounting rights, you are not able to open the POS session because it tries to get the field total due on the partners, but does not have the required access rights. To avoid this issue, we are not loading the total due if the user does not have the access rights. Forward-Port-Of: odoo/enterprise#31188 Forward-Port-Of: odoo/enterprise#31176
Original PR description
When you have some POS access rights and no accounting rights, you are not able to open the POS session because it tries to get the field total due on the partners, but does not have the required access rights. To avoid this issue, we are not loading the total due if the user does not have the access rights. Forward-Port-Of: odoo/enterprise#31188 Forward-Port-Of: odoo/enterprise#31176
This reference can be long, mainly after the upgrade Forward-Port-Of: odoo/enterprise#31183
Original PR description
This reference can be long, mainly after the upgrade Forward-Port-Of: odoo/enterprise#31183
Steps to reproduce: - open studio on planning module base gantt view - modify the menu organization Current behavior: Traceback : TypeError: Cannot read properties of undefined (reading 'dataset') Expected behavior: No traceback Explanation: When opening the studio edit menu in a gantt view, the drop function of the draggable elements in the edit menu form is set by the gantt view. Solution: We restrict the set of the drop function in the grantt view to grantt elements.
Original PR description
Steps to reproduce: - open studio on planning module base gantt view - modify the menu organization Current behavior: Traceback : TypeError: Cannot read properties of undefined (reading 'dataset') Expected behavior: No traceback Explanation: When opening the studio edit menu in a gantt view, the drop function of the draggable elements in the edit menu form is set by the gantt view. Solution: We restrict the set of the drop function in the grantt view to grantt elements. opw-2964319 Forward-Port-Of: odoo/enterprise#30916
It seems we can have SOs in a situation where they have their `subscription_management` set to either `upsell` or `renew`, but without having a parent `subscription_id`. This is causing an issue in the SO cancellation flow because it would try to post the cancellation message in the parent subscription's chatter. This is crashing because there's no subscription to write on. via p/feedback Forward-Port-Of: odoo/enterprise#31162
Original PR description
It seems we can have SOs in a situation where they have their `subscription_management` set to either `upsell` or `renew`, but without having a parent `subscription_id`. This is causing an issue in the SO cancellation flow because it would try to post the cancellation message in the parent subscription's chatter. This is crashing because there's no subscription to write on. via p/feedback Forward-Port-Of: odoo/enterprise#31162
Before this commit, the shared templates that were shared in 15.2 and older could not be signed anymore. The controller was deleted. If a parter received the mail before the upgrade and wanted to use it, it would return a 401 error. This commit put back the controller. The data are updated in a upgrade script where the correspondingsign request are created and the old share_link value is stored in the access_token field. Upgrade PR: Forward-Port-Of: odoo/enterprise#31130
Original PR description
Before this commit, the shared templates that were shared in 15.2 and older could not be signed anymore. The controller was deleted. If a parter received the mail before the upgrade and wanted to use it, it would return a 401 error. This commit put back the controller. The data are updated in a upgrade script where the correspondingsign request are created and the old share_link value is stored in the access_token field. Upgrade PR: Forward-Port-Of: odoo/enterprise#31130