Monday, February 20, 2023
7 changes · master
Resolved issues and error corrections
The web framework's record creation service now supports creating several records in a single operation instead of requiring separate repeated actions. This reduces unnecessary work and helps business processes that create batches of records run more efficiently.
Original PR description
Before this commit, the "create" function of the ORM service didn't allow to pass multiple records. As a consequence, it was needed to create records one by one calling the ORM create multiple times. This commit fixes the issue. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Email action buttons such as "View Task" now appear in the recipient partner's language instead of the sender or current user's language. This improves clarity for customers and users receiving automated emails in multilingual environments.
Original PR description
Email Access buttons (e.g. "View Task") must be in partner's language and not current user's language
This fix prevents an error when opening or customizing the manufacturing work order planning view without selected records. It skips an availability check when there is no relevant data, making the view more reliable for users working with Odoo Studio.
Original PR description
Traceback happens because it doesn't require records and call the function without row records. The code doesn't handle that case. Don't try to find unavailabilities in that case and just skip this part of code Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Emails opened from a contextual menu now display the selected template in the appropriate recipient language instead of the default language. This helps businesses send clearer, localized communications when using predefined mail templates.
Original PR description
When sending a mail template from a contextual menu configured to be sent in the user language, it was always in the default language. This solves the problem. Technical note: using the contextual menu force the mass mode which doesn't render the template as there might be more than one recipient. We face the same problem for recipient language. Here we have chosen to set the message in the language determined by the first record selected. Task-2742033 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The forecasted inventory report now correctly shows reserve and unreserve actions for manufacturing orders. It also removes a misleading zero inventory line when there are no related stock moves, making the report clearer for users.
Original PR description
Before this commit, the reserve and unreserve buttons did not appear for MOs. Another bug was also fixed, removed the 0 Inventory on Hand line that appeared when there are no moves in the report. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The ORM service can now create several records in a single action instead of requiring repeated separate creates. This reduces extra processing and keeps related screens and tests aligned with the updated behavior across affected Odoo apps.
Original PR description
Before this commit, the "create" function of the ORM service didn't allow to pass multiple records. As a consequence, it was needed to create records one by one calling the ORM create multiple times or call create via the method call. This commit allows to use the create method to create several records at once.
This update adjusts parts of Payroll and Knowledge so they continue to work correctly after a change in how new records are created behind the scenes. It prevents failures in related screens and keeps automated checks passing.
Original PR description
The PR https://github.com/odoo/odoo/pull/111965 has as a side effect to change the value returned by the create method of the orm service. Here we adapt the code that uses it and make the test pass.