Wednesday, April 30, 2025
1 change · saas-18.1
Resolved issues and error corrections
The fix prevents invoices from becoming inaccessible when users create Indian e-Waybills for the same invoice from multiple browser tabs. It ensures the system uses only one generated e-Waybill record, avoiding an error and keeping invoice access reliable.
Original PR description
This error occurs when users attempt to create an e-Waybill for the same invoice simultaneously from multiple tabs. Steps to Reproduce: - Install the `l10n_in` module. -`Switch to `In Company`, Go to Configuration > Indian Electronic Waybill. - Open an invoice and click on `Create e-Waybill`. - In a duplicate tab, fill the required e-Waybill details, `save` and do the same in the original tab - Attempt to access the invoice. `ValueError : Expected singleton: l10n.in.ewaybill(5, 20)` This error occurs at [1] when the system attempts to check the e-Waybill state but encounters multiple records with state generated. This commit resolves the error by ensuring that only a `single e-Waybill` is considered. [1]-https://github.com/odoo/odoo/blob/2a39cd199ee70311f0f9249403b8fb1352402120/addons/l10n_in_ewaybill/models/account_move.py#L43 Sentry - 6530655516 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr