Sunday, November 23, 2025
1 change · saas-18.3
Resolved issues and error corrections
This change makes sure split payments in Point of Sale are linked to the correct accounting customer when an order is placed under a child contact. It prevents customer statement mismatches and keeps payment records consistent with the order.
Original PR description
### Description Before this commit, when split payment was enabled for a payment method and a PoS order was assigned to a child contact, the accounting move for the payment was linked to the child contact, while the order move lines were linked to the parent contact. This inconsistency resulted in unbalanced customer statements. This commit ensures that the payment move is assigned to the same accounting partner as the order lines. ### How to reproduce: * Create a child contact (res.partner). * Activate "Identify Customer" (split payment) for a payment method. * Open the session. * Create an order assigning the child contact and pay using this method * Close the session. * Accounting payment for this session will be assigned to child partner opw-5121710 Forward-Port-Of: odoo/odoo#236723 Forward-Port-Of: odoo/odoo#235951