Thursday, August 1, 2024
14 changes · saas-17.2
Resolved issues and error corrections
This update fixes an issue in Point of Sale where certain exempt fields were incorrectly connected during loading. It helps prevent potential data handling problems and improves reliability when the POS starts up.
Original PR description
Before this commit, exempted fields were being connected upon loading, which could lead to issues. opw-4088809 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Miscellaneous changes
Steps to reproduce: - Sell any item in POS (Pick item > Payment > Bank > Validate) - Print receipt with 0 margin (current default) on external printer - Leftmost part of the receipt is truncated Why is this an issue: Frankly, since this issue only occurs on external printers and we haven't had complaints from people using Odoo supported devices (by that I mean connected to an IoT box) this could be considered not to be our problem. The receipt margins have been made smaller since 15.0 tho
Original PR description
Steps to reproduce: - Sell any item in POS (Pick item > Payment > Bank > Validate) - Print receipt with 0 margin (current default) on external printer - Leftmost part of the receipt is truncated Why…
Steps to reproduce: - Sell any item in POS (Pick item > Payment > Bank > Validate) - Print receipt with 0 margin (current default) on external printer - Leftmost part of the receipt is truncated Why is this an issue: Frankly, since this issue only occurs on external printers and we haven't had complaints from people using Odoo supported devices (by that I mean connected to an IoT box) this could be considered not to be our problem. The receipt margins have been made smaller since 15.0 though so there could be more people with this issue. I've tried printing one here and it is very slightly cut off, but that might depend on the device. What this fix does: This fix aims to reestablish margins as close to the way they were in 15.0 as possible (Don't want to go overboard and cut off the right) As it was in this commit b29c4a6113a002528aeed1fa59e823172bfce841 opw-3996929 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#173669
When the event is deleted and the user tries to download tickets for that event, a traceback will appear. Steps to reproduce the error: - Go to Website > Events > Open any event > register > confirm registration of the ticket - Go to Events > Open that event > delete attendees > delete that event - Download tickets of that event Traceback: ``` TypeError: unsupported operand types(s) or combination of types: 'str' and 'event.event' File "odoo/http.py", line 2248, in __call__ r
Original PR description
When the event is deleted and the user tries to download tickets for that event, a traceback will appear. Steps to reproduce the error: - Go to Website > Events > Open any event > register > confirm…
When the event is deleted and the user tries to download tickets for that event,
a traceback will appear.
Steps to reproduce the error:
- Go to Website > Events > Open any event > register > confirm registration of the ticket
- Go to Events > Open that event > delete attendees > delete that event
- Download tickets of that event
Traceback:
```
TypeError: unsupported operand types(s) or combination of types: 'str' and 'event.event'
File "odoo/http.py", line 2248, in __call__
response = request._serve_db()
File "odoo/http.py", line 1823, in _serve_db
return self._transactioning(_serve_ir_http, readonly=ro)
File "odoo/http.py", line 1843, 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 1821, in _serve_ir_http
return self._serve_ir_http(rule, args)
File "odoo/http.py", line 1828, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "odoo/http.py", line 1966, in dispatch
return self.request.registry['ir.http']._dispatch(endpoint)
File "odoo/addons/base/models/ir_http.py", line 220, in _dispatch
result = endpoint(**request.params)
File "odoo/http.py", line 756, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "addons/event/controllers/main.py", line 50, in event_my_tickets
if not consteq(tickets_hash, hash_truth):
```
https://github.com/odoo/odoo/blob/7b9df7c95c5f6a96d4d00c5d64e394141124752b/addons/event/controllers/main.py#L50 Here, when user deletes the event, 'event_sudo' will be empty,
So, eventually 'hash_truth' will be empty.
So it will lead to the above traceback.
sentry-5499927956
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: odoo/odoo#169921Before this commit, it was possible to add a pricelist in a different currency than the config currency, which is not supported. opw-4073993 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#175103
Original PR description
Before this commit, it was possible to add a pricelist in a different currency than the config currency, which is not supported. opw-4073993 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#175103
**Before this PR:** In link tracker form, if there is no campaign/medium/source, 'No matches found' message is directly displayed and the text-box for input disappears quickly. **Specifications:** We need to keep the input text-box open to be able to create new records on the fly. **Technical Reason:** defined 'formatNoMatches' as false to keep text-box open. **After this PR:** Text-box for input will remain open and will not disappear. Task-4065969 Forward-Port-Of: odoo/odoo#17
Original PR description
**Before this PR:** In link tracker form, if there is no campaign/medium/source, 'No matches found' message is directly displayed and the text-box for input disappears quickly. **Specifications:** We need to keep the input text-box open to be able to create new records on the fly. **Technical Reason:** defined 'formatNoMatches' as false to keep text-box open. **After this PR:** Text-box for input will remain open and will not disappear. Task-4065969 Forward-Port-Of: odoo/odoo#174360
Before this commit, scanning a barcode on the payment screen would mistakenly capture the barcode value as the payment amount. This could lead to incorrect payment amounts being recorded if not noticed by the cashier. opw-4079147 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#175048 Forward-Port-Of: odoo/odoo#174992
Original PR description
Before this commit, scanning a barcode on the payment screen would mistakenly capture the barcode value as the payment amount. This could lead to incorrect payment amounts being recorded if not noticed by the cashier. opw-4079147 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#175048 Forward-Port-Of: odoo/odoo#174992
Prior to this commit, enabling limited product loading could result in the discount product not being loaded. opw-4057657 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#174957 Forward-Port-Of: odoo/odoo#173600
Original PR description
Prior to this commit, enabling limited product loading could result in the discount product not being loaded. opw-4057657 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#174957 Forward-Port-Of: odoo/odoo#173600
v2.3.0 of Owl added the .translate modifier to props, allowing them to be translated. This commit updates the script that generates the .pot files (the list of source terms to translate) in order to take into account props with the .translate modifier. Task-3980675 Forward-Port-Of: odoo/odoo#174865 Forward-Port-Of: odoo/odoo#174697
Original PR description
v2.3.0 of Owl added the .translate modifier to props, allowing them to be translated. This commit updates the script that generates the .pot files (the list of source terms to translate) in order to take into account props with the .translate modifier. Task-3980675 Forward-Port-Of: odoo/odoo#174865 Forward-Port-Of: odoo/odoo#174697
Description of the issues this commit addresses: As from the first of september 2024, Finland will raise 24% taxes to 25.5%, those rates are currently not available in Odoo. --- Desired behavior after this commit is merged: New 25.5% taxes are available in Finland OSS tax mapping is done for other countries to Finland The mapping from Finland to other countries is deliberately left for later as we don't want the mapping to 25.5% to tkae place before the 09/01/24. --- task-4010
Original PR description
Description of the issues this commit addresses: As from the first of september 2024, Finland will raise 24% taxes to 25.5%, those rates are currently not available in Odoo. --- Desired behavior after this commit is merged: New 25.5% taxes are available in Finland OSS tax mapping is done for other countries to Finland The mapping from Finland to other countries is deliberately left for later as we don't want the mapping to 25.5% to tkae place before the 09/01/24. --- task-4010731 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#174805 Forward-Port-Of: odoo/odoo#171414
Before this commit the qweb profiler was broken. Steps to reproduce: - enable profiling and record qweb and it's directive for 5 minutes. - then go to Settings > Configure Document Layout > click on save. - then go to Settings > Techincal > Profiling and open profile - /web/dataset/call_kw/base.document.layout/onchange? Observed behavior: qweb profiler css is not appropriate. Expected behavior: qweb profiler should be visible with proper css. Task-3700415 --- I confirm I h
Original PR description
Before this commit the qweb profiler was broken. Steps to reproduce: - enable profiling and record qweb and it's directive for 5 minutes. - then go to Settings > Configure Document Layout > click on save. - then go to Settings > Techincal > Profiling and open profile - /web/dataset/call_kw/base.document.layout/onchange? Observed behavior: qweb profiler css is not appropriate. Expected behavior: qweb profiler should be visible with proper css. Task-3700415 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#161685
The aim of this commit is to fix runbot build error. Before the commit: The test could fail if the EUR currency was inactive After the commit: The test activate the currency first --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#173764
Original PR description
The aim of this commit is to fix runbot build error. Before the commit: The test could fail if the EUR currency was inactive After the commit: The test activate the currency first --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#173764
We use a "distant_display" if no display is connected to the IoT, in order to use the customer display on another computer. We don't need to send it to the database though, as it could confuse users. Task: 4061443 Forward-Port-Of: odoo/odoo#175191
Original PR description
We use a "distant_display" if no display is connected to the IoT, in order to use the customer display on another computer. We don't need to send it to the database though, as it could confuse users. Task: 4061443 Forward-Port-Of: odoo/odoo#175191
Commit [1] replaced the dialogs from legacy to OWL ones, but also created a deadlock by not resolving the promise set by the dialog. This commit fixes that by properly resolving the promise regardless of the user's answer. [1]: https://github.com/odoo/odoo/commit/00c9a7919768df71e79b5d34e21064729443c5fe Forward-Port-Of: odoo/odoo#175095
Original PR description
Commit [1] replaced the dialogs from legacy to OWL ones, but also created a deadlock by not resolving the promise set by the dialog. This commit fixes that by properly resolving the promise regardless of the user's answer. [1]: https://github.com/odoo/odoo/commit/00c9a7919768df71e79b5d34e21064729443c5fe Forward-Port-Of: odoo/odoo#175095
return emtpy translations list when the field is not translatable to be consistent with the api's definition 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 Forward-Port-Of: odoo/odoo#175224 Forward-Port-Of: odoo/odoo#175110
Original PR description
return emtpy translations list when the field is not translatable to be consistent with the api's definition 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 Forward-Port-Of: odoo/odoo#175224 Forward-Port-Of: odoo/odoo#175110