Friday, May 2, 2025
2 changes · saas-18.2
Resolved issues and error corrections
Fixes an issue where invoice data extraction could fail when the same detected text matched more than one scanned word. The system now narrows the match to the exact selected text, improving reliability when users process invoices from documents with repeated or similar content.
Original PR description
The error occurred because multiple `iap.extracted.words` records matched the search filter for `user_selected_box`, and the code tried to access `.word_text` directly on the multi-recordset, which expects a singleton.
Error:
`ValueError: Expected singleton: iap.extracted.words(35683, 35697)`
Solution:
- Added `('word_text', '=', text_to_send['content'])` to the search domain to ensure only matching record is returned.
sentry-6547557298This update improves how the point-of-sale payment screen handles removable zero-quantity order lines, reducing the chance of incorrect cleanup during due settlement. It also streamlines related automated test steps so future changes can be validated more consistently.
Original PR description
- Introduced `canBeRemoved` property in `PosOrderline` to simplify zero-qty line removal logic. - Updated payment screen to use `canBeRemoved` for cleaner filtering. - Added reusable tour helpers: `clickDropDownItemText` and `clickSettleOrderName`. See also: odoo/enterprise#84117 Task [link](https://www.odoo.com/odoo/project/967/tasks/4751971) task-4751971