Tuesday, December 31, 2024
4 changes · 17.0
Resolved issues and error corrections
This fix clears outdated event listeners when an image-editing component is removed in the website builder. It prevents errors when users replace an image and then unlink it, making page editing more reliable.
Original PR description
**Problem**: When destroying a snippet, listeners are not cleared. As a result, when focusing on a new instance of `ReplaceMedia`, the previous listeners remain active with stale context (old `$target`), which no longer has a parent since it was removed during the `img` change. **Solution**: Clear listeners during the `destroy` process. **Steps to reproduce**: 1. Open the website. 2. Add items. 3. Change an image. 4. Unlink that image. 5. Observe a traceback. opw-4412300 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Creating a new Time Off type with a maximum excess amount no longer triggers an error. This helps HR teams save time-off settings reliably when allowing negative balances.
Original PR description
Currently below error occurs when creating a time-off type. Error: `ValueError: invalid literal for int() with base 10: '84,000'` Steps to reproduce :- - Open 'Time Off' >> Go to 'Configuration' >> Click 'Time off Types' >> Click 'New' . - Give 'Time off Type' a name >> Enable 'Allow Negative Cap' >> Set 'Maximum Excess Amount' >> Hit 'Save'. - The error appears in the log. This commit solves the above issue by removing the `widget`. sentry-6184334906
This update ensures that customer names are now included in FedEx shipping requests when shipping to companies. FedEx support confirmed this was a requirement, resolving a previous error that occurred when delivery and billing addresses differed. This improves shipping accuracy and reliability.
Original PR description
Before this commit: Only `companyName` is included in shipping requests sent to FedEx. After this commit: `personName` is added to the request, same as `companyName`. According to FedEx documentation, it is not required if the address is `buisness` but we get an error if the `deliveryAddress` and `soldTo` address are different. Checked with FedEx support, and they said it is required to send the `personName` field always. opw-4415536
This update resolves a technical issue preventing users from editing shipping documents reports within the Odoo Studio. The fix corrects a typo in the report's code, preventing an error when searching for a specific element on the report's design. This ensures the Studio editor functions correctly for all shipping label reports.
Original PR description
while opening report in report('shipping Document','Shipping Labels') through studio this traceback is raising because their is no node have with [id = 'wrapwrap'] due to that while checking xpath it…
while opening report in report('shipping Document','Shipping Labels') through studio this traceback is raising because
their is no node have with [id = 'wrapwrap'] due to that while checking xpath it is giving the error because their is no element and returing None so checking before accessing.
Traceback
```
RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/data/build/odoo/odoo/http.py", line 1765, in _serve_db
return service_model.retrying(self._serve_ir_http, self.env)
File "/data/build/odoo/odoo/service/model.py", line 133, in retrying
result = func()
File "/data/build/odoo/odoo/http.py", line 1792, in _serve_ir_http
response = self.dispatcher.dispatch(rule.endpoint, args)
File "/data/build/odoo/odoo/http.py", line 1996, in dispatch
result = self.request.registry['ir.http']._dispatch(endpoint)
File "/data/build/odoo/addons/website/models/ir_http.py", line 235, in _dispatch
response = super()._dispatch(endpoint)
File "/data/build/odoo/odoo/addons/base/models/ir_http.py", line 222, in _dispatch
result = endpoint(**request.params)
File "/data/build/odoo/odoo/http.py", line 722, in route_wrapper
result = endpoint(self, *args, **params_ok)
File "/data/build/enterprise/web_studio/controllers/report.py", line 471, in load_report_editor
report_qweb = self._get_report_qweb(report)
File "/data/build/enterprise/web_studio/controllers/report.py", line 604, in _get_report_qweb
main_qweb.xpath("//*[@id='wrapwrap']")[0]
IndexError: list index out of range
The above server error caused the following client error:
OwlError: An error occured in the owl lifecycle (see this Error's "cause" property)
at handleError (https://61184473-17-0-all.runbot103.odoo.com/web/assets/ffa43fc/web.assets_web.min.js:916:101)
at App.handleError (https://61184473-17-0-all.runbot103.odoo.com/web/assets/ffa43fc/web.assets_web.min.js:1542:29)
at ComponentNode.initiateRender (https://61184473-17-0-all.runbot103.odoo.com/web/assets/ffa43fc/web.assets_web.min.js:1006:19)
Caused by: RPC_ERROR: Odoo Server Error
```
on clicking on this error is raising :-
