Thursday, June 9, 2022
4 changes · master
Resolved issues and error corrections
This update adjusts the master branch release version so only the minor version increases before the next major release. This reduces confusion for teams preparing upgrade scripts and keeps the release process clearer and more flexible.
Original PR description
Even though the release process changed a bit, it seems that only the MINOR version number should be incremented in the master branch until the next major release. This avoid confusion when writing upgrade scripts, it should work in any case and it leaves more room from process improvement.
This fixes an issue where extra controls in inventory and manufacturing reports could disappear or fail to appear after the page was rendered. Users will see the expected buttons and search options consistently in the bill of materials and stock traceability reports.
Original PR description
Since 362f6b6d5bc45b4361414334ad8ea662868d81a6, the control panel of an action can be rendered only the first time the dom is built. Any further rerenders won't do anything. The bom report needs to add some buttons and a searchView. Previously, those widgets was added in the set_html _after_ the first rendering of the controlPanel. This report is an extend of the stock traceability which also adds some buttons. In this case the buttons are rendered correctly because they are added _before_ the controlPanel rendering. This commit makes the extra widgets to be rendered in the control panel generated in a new specific method overridable in the bom report file 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
A Web Studio automated test was updated to match a routing change introduced in the core Odoo platform. This helps keep internal quality checks reliable and reduces the risk of delays caused by false test failures.
Original PR description
Problem: When running the test `drag & drop block "Image"` with the changes of [1], the route used in the mockRPC was not matched [1]: https://github.com/odoo/odoo/pull/82612 Solution: Change the route of the mockRPC opw-2648770 task-2811325
This fixes an issue where completed signed PDFs could fail to generate when electronic invoicing features were installed. It makes the signing workflow more reliable for users completing documents, reducing interruptions during document finalization.
Original PR description
Before this commit, the PDF rendering would crash with the following traceback due to a change of API. It would only appear when account_edi was installed. ``` File…
Before this commit, the PDF rendering would crash with the following traceback due to a change of API.
It would only appear when account_edi was installed.
```
File "/home/dbo/src/enterprise/sign/models/sign_request.py", line 834, in _edit_and_sign
self._sign(signature)
File "/home/dbo/src/enterprise/sign/models/sign_request.py", line 863, in _sign
sign_request._sign()
File "/home/dbo/src/enterprise/sign/models/sign_request.py", line 365, in _sign
self._send_completed_document()
File "/home/dbo/src/enterprise/sign/models/sign_request.py", line 395, in _send_completed_document
self._generate_completed_document()
File "/home/dbo/src/enterprise/sign/models/sign_request.py", line 588, in _generate_completed_document
pdf_content, __ = report_action.with_user(public_user).sudo()._render_qweb_pdf(self.id)
File "/home/dbo/src/odoo/addons/account/models/ir_actions_report.py", line 42, in _render_qweb_pdf
return super()._render_qweb_pdf(res_ids=res_ids, data=data)
File "/home/dbo/src/odoo/odoo/addons/base/models/ir_actions_report.py", line 775, in _render_qweb_pdf
collected_streams = self._render_qweb_pdf_prepare_streams(data, res_ids=res_ids)
File "/home/dbo/src/odoo/addons/account_edi/models/ir_actions_report.py", line 18, in _render_qweb_pdf_prepare_streams
and len(res_ids) == 1 \
TypeError: object of type 'int' has no len()
```
Note: since https://github.com/odoo-dev/odoo/commit/8bdd8cffd02bf34302582cf8a4c6b15583f10729 this commit is not formally needed
anymore but we decive to keep it to presever consistancy and robustness regarding future changes.
taskid: 2849324