Friday, June 14, 2024
2 changes · saas-17.2
Resolved issues and error corrections
Uploading an empty XML file to a customer invoice no longer creates an unnecessary error report. The system now records this expected issue as a warning, reducing monitoring noise without changing the user workflow.
Original PR description
Currently, an exception is occurring when the user tries to upload an empty XML file in customer invoices.
Steps to produce:
1) Install `Accounting`
2) Try to upload an empty `XML` file in customer invoices.
3) In the backend a logger exception is encountered.
Error:-
```
ValueError: can only parse strings
File "addons/account/models/ir_attachment.py", line 38, in _decode_edi_xml
xml_tree = etree.fromstring(content)
File "src/lxml/etree.pyx", line 3255, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1912, in lxml.etree._parseMemoryDocument
```
This causes noise in the sentry, So changing the exception to a warning can resolve this issue.
https://github.com/odoo/odoo/blob/14755d586a695df4c350f29e0c99c876c5811e4f/addons/account/models/ir_attachment.py#L40
sentry-4855416823
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis update brings the spreadsheet component to its latest maintenance version and fixes several user-facing issues. Users should see more reliable collaboration saving, better popover placement, corrected figure sizing with frozen panes, and improved find-and-replace range handling.
Original PR description
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/7704cc416 [REL] 17.2.11 Task: 0 https://github.com/odoo/o-spreadsheet/commit/4bebc0608 [FIX] Figure: Fix container…
### Contains the following commits: https://github.com/odoo/o-spreadsheet/commit/7704cc416 [REL] 17.2.11 Task: 0 https://github.com/odoo/o-spreadsheet/commit/4bebc0608 [FIX] Figure: Fix container size in presence of frozen panes Task: 3976086 https://github.com/odoo/o-spreadsheet/commit/83aec4b3b [FIX] collaborative: snapshot only when no pending changes Task: 0 https://github.com/odoo/o-spreadsheet/commit/f4989d00c [FIX] popover: popover position with scrollbar Task: 3981551 https://github.com/odoo/o-spreadsheet/commit/ff2141018 [FIX] data_validation: wrong popover position Task: 3981399 https://github.com/odoo/o-spreadsheet/commit/d0fcde5b5 [FIX] collaborative: snapshot when leaving spreadsheet Task: 3940465 https://github.com/odoo/o-spreadsheet/commit/a445f51e0 [FIX] FindAndReplaceSidePanel: Fix range update Task: 3972409 Co-authored-by: Anthony Hendrickx (anhe) <anhe@odoo.com> Co-authored-by: Alexis Lacroix (laa) <laa@odoo.com> Co-authored-by: Lucas Lefèvre (lul) <lul@odoo.com> Co-authored-by: Dhrutik Patel (dhrp) <dhrp@odoo.com> Co-authored-by: Adrien Minne (adrm) <adrm@odoo.com> Co-authored-by: Mehdi Rachico (mera) <mera@odoo.com> Co-authored-by: Rémi Rahir (rar) <rar@odoo.com> Co-authored-by: Pierre Rousseau (pro) <pro@odoo.com> Co-authored-by: Vincent Schippefilt (vsc) <vsc@odoo.com>