Skip to content
Snippets Groups Projects
Commit a7ebb515 authored by roen-odoo's avatar roen-odoo
Browse files

[FIX] point_of_sale: use correct partner_id for invoiced orders


Current behavior:
When invoicing an order that was made in a closed PoS session, the wrong
partner was used for the invoice. And so the total due was assigned to
the wrong partner if you used the "Customer Account" payment method.

Steps to reproduce:
- Open PoS and make an order for a customer using the Customer Account
  payment method.
- Close the PoS session.
- Open the PoS session again, and invoice the order you made in the
  previous session.

Fix:
Use the commercial_partner_id of the order's partner instead of the
partner_id directly.

opw-3478670

closes odoo/odoo#135007

Signed-off-by: default avatarVlad Stroia (vlst) <vlst@odoo.com>
parent 73d7d70c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment