Monday, July 8, 2024
4 changes · saas-17.1
Resolved issues and error corrections
This fix prevents Point of Sale from sending incomplete background requests after an offline barcode scan fails. It avoids backend error logs when the same unknown barcode is scanned again online, making POS operation more stable for users.
Original PR description
A traceback is occuring in the backend when the `method` is undefined while using the `POS`.
Error:-
```
KeyError: 'method'
File "odoo/http.py", line 2248, in __call__
response = request._serve_db()
File "odoo/http.py", line 1818, in _serve_db
ro = ro(self.registry, request)
File "addons/web/controllers/dataset.py", line 23, in _call_kw_readonly
method_name = params['method']
```
During an `ORM` call with dynamic method and model, at some point somehow,
`method` value getting undefined with the model as `pos.session`.
This leads to a traceback in the backend side.
After applying this commit it will resolve this issue by handling
the traceback on the `JS` side when the method is undefined.
sentry-5285015466Product searches in Point of Sale now avoid creating duplicate product entries behind the scenes. This helps keep product lookup results reliable and prevents possible confusion or performance issues during checkout.
Original PR description
This commit addresses an issue where searching for a product by name in the database led to the recreation of product records. The problem arose during the addition of products to indexedRecords, resulting in duplicates. Enterprise PR: https://github.com/odoo/enterprise/pull/65952 opw-4004765 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Searching for products by name in the restaurant appointment point-of-sale flow no longer creates duplicate product records. This helps keep product search results and order data accurate for staff using the system.
Original PR description
This commit addresses an issue where searching for a product by name in the database led to the recreation of product records. The problem arose during the addition of products to indexedRecords, resulting in duplicates. Community PR: https://github.com/odoo/odoo/pull/171264 opw-4004765
Planning overlap warnings now show employee names in alphabetical order. This makes the warning easier to read and prevents inconsistent ordering from causing unreliable test results or unexpected behavior.
Original PR description
This PR makes the employees always appear in alphabetical order in the planning overlap warning. This fixes a test breaking when the order changes, and prevents potential problems caused by a nondeterministic order. Task-4037741