Friday, October 4, 2024
1 change · saas-17.4
Resolved issues and error corrections
Point of Sale can now link related records correctly even when data arrives in an unexpected order. This helps avoid missing connections between sales orders and accounting records, improving reliability during data loading or synchronization.
Original PR description
Before this commit, the `loadData` function required records to be connected in a specific order, prioritizing models that are dependencies for others. This posed a problem, for instance, when attempting to load `pos.order` before `account.move`, as the latter might be missing, preventing a correct linkage between `pos.order` and `account.move`. This commit eliminates the dependency on loading order. Now, if a record cannot be connected due to a missing dependency, it is temporarily stored and later connected once the missing record becomes available. opw-4229303 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr