Monday, July 8, 2024
1 change · 17.0
Code cleanup and technical improvements
This update moves a record-locking mechanism from the Mexican EDI module to the core accounting system, making it available for all electronic document systems. This prevents multiple users from accidentally sending the same invoice simultaneously, improving data integrity and reducing duplicate submissions across different countries' EDI systems.
Original PR description
This commit moves the generic `_with_locked_records` from `l10n_mx_edi.document` in `l10n_mx_edi` -> `res.company` in `account` This allows multiple EDIs to use the same generic method for locking their record before using them in requests. This prevents 2 (or more) users to send the same invoice at the same time. Affected EDIs: l10n_mx_edi, l10n_ro_edi task-id: 3595436 related community PR: https://github.com/odoo/odoo/pull/144061