Wednesday, December 11, 2024
3 changes · saas-17.4
Resolved issues and error corrections
The Point of Sale furniture onboarding flow now avoids crashing if the default down payment product was deleted. This helps users continue setting up the furniture scenario without being blocked by a missing setup record.
Original PR description
Currently, an error occurs when trying to load onboarding 'Furnitures' without a product name 'Down Payment (POS). Step to produce: - Install the 'pos_sale' module. - Delete a product name 'Down…
Currently, an error occurs when trying to load onboarding 'Furnitures' without a product name 'Down Payment (POS).
Step to produce:
- Install the 'pos_sale' module.
- Delete a product name 'Down Payment (POS)'.
- Open a point of sale and archive all sessions, Click on the 'Furnitures' scenario card.
Traceback On Sentry:
```
ValueError: No record found for unique ID pos_sale.default_downpayment_product. It may have been deleted.
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/pos_sale/models/pos_config.py", line 35, in load_onboarding_furniture_scenario
self._ensure_downpayment_product()
File "addons/pos_sale/models/pos_config.py", line 30, in _ensure_downpayment_product
pos_config.write({'down_payment_product_id': self.env.ref('pos_sale.default_downpayment_product').id})
File "odoo/api.py", line 593, in ref
raise ValueError('No record found for unique ID %s. It may have been deleted.' % (xml_id))
```
An error occurs when the system tries to retrieve an external ID of product 'Down Payment (POS)' at [1] When opening a 'Furnitures' scenario card in POS, but it is not available.
To handle this issue, add 'raise_if_not_found=False' so that if the external id of a product 'Down Payment (POS)' is not found, then it will return a None value instead of raising an error.
Sentry-5690826936
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prRefreshing the event barcode page no longer changes how attendee records open. This keeps registration desk staff in the intended dialog workflow, avoiding confusion and extra navigation during check-in.
Original PR description
Steps to reproduce =================== - Open the barcode interface by selecting attendee from the barcode in the registration desk. - Click on any record it will open a dialog and the attendee is registered. - Now refresh the page again click on any record. - Form view will be opened this time instead of dialog. Technical ========== Context is added to the action from the js side when we click on the `select attendee` button and we loose that when we refresh the page. This commit resolves the issue by adding the context directly in the action from XML side so when we refresh the page, the action will be loaded again and we will not lose the context. task-4273707
When users create a spreadsheet from Documents, template choices now display their names instead of appearing unnamed. This makes it easier to identify and select the right template, reducing confusion during spreadsheet creation.
Original PR description
when creating a new spreadsheet in document, the user is prompted to either choose a blank spreadsheet or choose to create them from a template. The view didn't list the name of the template. This commit shows the name of the template Task: 4363974