Friday, September 13, 2024
7 changes · saas-17.4
Resolved issues and error corrections
Fixes an issue where the Dependencies tooltip in website page properties could reappear empty after being opened more than once. This ensures users can reliably see which pages or items depend on a changed page URL, reducing confusion during website edits.
Original PR description
task-4179593
This fixes an issue where the “include archived” option could show up twice when users built certain advanced filters. The change keeps the filter interface cleaner and avoids confusion when selecting archived records.
Original PR description
This commit fixes a bug where the include archived checkbox button would be duplicated when the "any" operator would be used. This was due to the fact that using this operator would spawn a sub TreeEditor component inside of itself carrying most of its props including the include archived Checkbox slot from the domain selector which was supposed to be unique. The fix is therefore to empty the slots from the sub TreeEditor component.
PDF quotes now correctly show banner background colors in terms and conditions. This keeps downloaded documents visually consistent with what users see in Odoo and avoids missing emphasis in customer-facing PDFs.
Original PR description
Issue: ====== Downloaded pdfs doesn't have the background color of banners. Steps to reproduce the issue: ============================= - Go to any sale order - Add a banner in terms and conditions - Print PDF Quote - No background color of the banner Origin of the issue: ==================== After the upgrade of bootstrap to 5.3 in [1], we changed the hardcoded colors to css variables of the alers. We use wkhtmltopdf to render the pdf files but it doesn't support the css variables so we loose all the stylnig that was using those variables. Solution: ========= Add an override for alert classes to keep the old colors and styles as hardcoded to make sure they appear in the generated pdf opw-4143779 [1]: https://github.com/odoo/odoo/commit/058212e12b5079eba870bde9775fe98f27928935
Users can now duplicate multiple customer payments from the Payments list without triggering an error. This prevents interruptions in invoicing workflows when handling several payments at once.
Original PR description
This Error occurs when a user tries to duplicate multiple payments from the 'Payments' list view. Steps to reproduce: - Install the 'account' module - Go to Invoicing / Customers / Payments and…
This Error occurs when a user tries to duplicate multiple payments from the 'Payments' list view.
Steps to reproduce:
- Install the 'account' module
- Go to Invoicing / Customers / Payments and create two payments.
- Come to the list view of 'Payments' and duplicate both of them.
Traceback:
```
ValueError: too many values to unpack (expected 1)
File "odoo/models.py", line 5961, in ensure_one
_id, = self._ids
ValueError: Expected singleton: account.payment(22, 11)
File "odoo/http.py", line 2373, in __call__
response = request._serve_db()
File "odoo/http.py", line 1903, in _serve_db
return self._transactioning(
File "odoo/http.py", line 1966, in _transactioning
return service_model.retrying(func, env=self.env)
File "odoo/service/model.py", line 134, in retrying
result = func()
File "odoo/http.py", line 1933, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "odoo/http.py", line 2177, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "odoo/addons/base/models/ir_http.py", line 223, in _dispatch
result = endpoint(**request.params)
File "odoo/http.py", line 754, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "addons/web/controllers/dataset.py", line 35, in call_kw
return call_kw(request.env[model], method, args, kwargs)
File "odoo/api.py", line 459, in call_kw
result = getattr(recs, name)(*args, **kwargs)
File "addons/account/models/account_payment.py", line 939, in copy
if not self.is_internal_transfer:
File "odoo/fields.py", line 1204, in __get__
record.ensure_one()
File "odoo/models.py", line 5964, in ensure_one
raise ValueError("Expected singleton: %s" % self)
```
An error occurs at [1], where the system receives multiple records in 'self' as duplicating of multiple payments.
link [1]:https://github.com/odoo/odoo/blob/5e28dcf717a7184f226773b3c84b409da24c1336/addons/account/models/account_payment.py#L939
To resolve this issue, Add a loop to copy multiple records one by one.
Sentry-5689633522
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis fixes an Accounting issue where duplicating more than one vendor payment at the same time caused an error. Users can now select and duplicate multiple payment records without interruption, improving reliability in day-to-day payment processing.
Original PR description
Problem: After this [commit](https://github.com/odoo/odoo/pull/166494/commits/c61adb511d002d74ec763e7dd113d18734d861ff), attempting to copy multiple payments fails because the case where `self` contains multiple records is not handled. Steps to reproduce: - Go to Accounting > Vendors > Payments. - Select two payment lines and duplicate them. - Traceback occurs. opw-4144848 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Invoice line product descriptions now resize their text area when the column width changes. This keeps the full label visible without an unwanted scrollbar, making invoice editing cleaner and easier to read.
Original PR description
On the invoice form view, if the product column of a previously saved invoice line was resized to be of a smaller width, an undesired scrollbar would show on the product label text area. This commit fixes this issue by making the label text area height adapts to changes in its width to always show its full content without the need for a scrollbar. task-4034995 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fix updates access rights so enterprise users working in Invoicing can use the missing bank transactions part of bank synchronization. It completes a previous access-rights update and prevents users from being blocked in that workflow.
Original PR description
Since this commit [[1]], the bank synchronization flow is available in invoicing for enterprise user. It means that we have to update the access rights. It was done for the main flow but forgotten for the missing transactions flow. [1]: https://github.com/odoo-dev/enterprise/commit/c00c23cca9760533f0578ba3c93e3b59979589ce no task id