Daily updates from Odoo
Thursday, August 18, 2022
14 changes
Enhancements to existing features
This change moves several performance tests to run after installation, making results more dependable and less affected by local database variations. It helps teams detect performance side effects from related add-ons earlier while keeping test expectations aligned with current environments.
Original PR description
PURPOSE Have more reliable tests. Better spot side effects coming from sub addons. Lessen non deterministic counters due to local db. SPECIFICATIONS Make crm, event and mail performance tests post install. Update query counters with * local values (install module only with enterprise activated); * community / enterprise runbots (if value is different); * some notes on non deterministic issue if known; Task-2925606
Digest tip content has been adjusted so it continues to display correctly after recent changes to digest email templates. This keeps guidance and promotional tips consistent across accounting, documents, helpdesk, planning, and enterprise digest areas.
Original PR description
With this related community PR, the `digest_data` template has been changed, so the `digest_tips` is not compatible with the new changes. This commit changes the `digest_tips` data template to be compatible with the new changes. Below are the modules affected: - account_accountant - digest_enterprise - documents - helpdesk - planning task-2717426
The wording for the SMS service option in Sign settings has been improved to make it easier for users to understand. This helps businesses configure signature-related SMS features with clearer guidance and less ambiguity.
Original PR description
Improve IAP's SMS service wording on the sign settings page. task-id 2908537
This update removes an unused internal method from the asset accounting area. It has no expected impact on daily use, but helps keep the codebase simpler and easier to maintain.
Original PR description
Follow up on 6cb107c42c1e3a679f7c7b2f41466f39d042bd16 Method `create_asset_move` is not called from anywhere.
Resolved issues and error corrections
Updates an internal Web Studio test so it selects the expected group after mock data changes. This helps keep automated test results reliable and reduces false failures during development.
Original PR description
The test of view editor manager selects a group from the dropdown list, the result is changed cause a new record is inserted into the `res.groups` mock server, which is leading to a different result and should be fixed. relate PR: https://github.com/odoo/odoo/pull/98378 task-2957108
This update corrects a broken configuration used to display document tags. It helps ensure tags continue to appear and behave correctly in the Documents app after related system changes.
Original PR description
https://github.com/odoo/odoo/pull/96654
Several Odoo Enterprise screens were adjusted to use the current Bootstrap 5 styling rules instead of older Bootstrap 4 classes. This helps keep the user interface consistent and prevents display issues across Documents, HR Contracts, Projects, Spreadsheets, Studio promotion, and Events.
Original PR description
*: documents,hr_contract,project_enterprise,spreadsheet_edition, website_event_track_gantt Some commit have added old Bootstrap 4 classes after the merge of Bootstrap 5. Note that it's not possible anymore as the merge bot is now able to detect it.
Users can once again upload documents directly from the document views linked to projects or tasks. This fixes a disabled upload button, reducing friction for teams managing project files in Odoo.
Original PR description
When accessing the documents kanban view specific to a project or a task, the 'Upload' button is disabled. It should be possible to upload documents from that view. This commit restores this feature by correctly marking the button as enabled. Task-2956992
The Sign request modal has been updated to match the look and behavior of other Odoo modal windows. This creates a more consistent experience for users preparing and sending signature requests.
Original PR description
Update SCSS of the modal to be in accordance with the other modal task-id 2901834
Miscellaneous changes
Before this commit: Cannot view journal entry from the general ledger when multiple payments are registered on an invoice and cash basis option is activated. After this commit: The cash basis option is ignored when trying to view a journal entry. OPW-2944821 Forward-Port-Of: odoo/enterprise#30550
Original PR description
Before this commit: Cannot view journal entry from the general ledger when multiple payments are registered on an invoice and cash basis option is activated. After this commit: The cash basis option is ignored when trying to view a journal entry. OPW-2944821 Forward-Port-Of: odoo/enterprise#30550
Steps to reproduce: - Go to Sign - Click on a template - Add a Selection field - Set the options - Leave the template - Go back to it - Select the field again - Click Validate again Current behavior: The options dissapear from the item Expected behavior: The options stay on the item Explanation: When we validate and hide the item configuration popup we pull the item_options from the select input data. https://github.com/odoo/enterprise/blob/f480ead08011247d2c6c1cb9fe98dc268
Original PR description
Steps to reproduce: - Go to Sign - Click on a template - Add a Selection field - Set the options - Leave the template - Go back to it - Select the field again - Click Validate again Current behavior:…
Steps to reproduce: - Go to Sign - Click on a template - Add a Selection field - Set the options - Leave the template - Go back to it - Select the field again - Click Validate again Current behavior: The options dissapear from the item Expected behavior: The options stay on the item Explanation: When we validate and hide the item configuration popup we pull the item_options from the select input data. https://github.com/odoo/enterprise/blob/f480ead08011247d2c6c1cb9fe98dc268e4c21d0/sign/static/src/js/sign_backend.js#L274 The problem is that item_options is only set with the selectChangeHandler (meaning when we modify the options) https://github.com/odoo/enterprise/blob/35f1b6bdd988d5eee597ecd0407ea125e18e1c17/sign/static/src/js/sign_common.js#L544 so if we validate without modifying the options then item_options is never set and the options are deleted. To fix the issue we also get the options in the start of the popup. opw-2947995 Forward-Port-Of: odoo/enterprise#30498 Forward-Port-Of: odoo/enterprise#30320
The usage of float_split_str() is more suited for this situation since the main goal is to get rid of decimal values by rendering the amount as an integer. This is easily done here by splitting both parts (unitary/decimal) and formatting the result accordingly. Forward-Port-Of: odoo/enterprise#28856
Original PR description
The usage of float_split_str() is more suited for this situation since the main goal is to get rid of decimal values by rendering the amount as an integer. This is easily done here by splitting both parts (unitary/decimal) and formatting the result accordingly. Forward-Port-Of: odoo/enterprise#28856
Duplicating folders produces error in the following cases: 1. A folder linked to an action that has no associated tag_id. 2. A workflow action pointing to a facet in a different folder than the one associated with its workflow rule (copying the latter produces an error). 3. A folder with workflow rules and actions using facets and tags from ancestors. This PR fixes the copy method to better handle the aforementioned edge cases. It will now behave as follow for each of the above points:
Original PR description
Duplicating folders produces error in the following cases: 1. A folder linked to an action that has no associated tag_id. 2. A workflow action pointing to a facet in a different folder than the one associated with its workflow rule (copying the latter produces an error). 3. A folder with workflow rules and actions using facets and tags from ancestors. This PR fixes the copy method to better handle the aforementioned edge cases. It will now behave as follow for each of the above points: 1. Keep the tag empty 2. Keep the same value for the facet and tag 3. If the ancestor is also being copied in the same copy, use the new facets/tags of that folder. Otherwise, do not use those values. It also disables the quick create for facets in the list view of actions, as it allowed to create facets not linked to any folder, which also produces issues when trying to duplicate folders. Task-2953966 Forward-Port-Of: odoo/enterprise#30507
How to reproduce the bug ? - install base and account_accountant - In the Accounting app, go to Customers > Follow-up Reports. Open one report. - If no report has been sent, send one. - Click on the body of the message and edit it. - Click on save and check the report that you have already sent What is the bug ? When you modify the body of the follow-up report and sav it, the non-editable text area must be updated. When the javascript function selects the text area, it will also
Original PR description
How to reproduce the bug ? - install base and account_accountant - In the Accounting app, go to Customers > Follow-up Reports. Open one report. - If no report has been sent, send one. - Click on the body of the message and edit it. - Click on save and check the report that you have already sent What is the bug ? When you modify the body of the follow-up report and sav it, the non-editable text area must be updated. When the javascript function selects the text area, it will also fetch the text area of the reports sent and visible in the chatter. opw-2939986 Signed-off-by: Adrien Minet <admi@odoo.com> Forward-Port-Of: odoo/enterprise#30293