-
- Downloads
[FIX] point_of_sale: use pos_order partner when not connected
Current behavior:
When using the QRCode on ticket to create an invoice, it was always
creating a new partner, even if a partner was already set on the order.
Steps to reproduce:
- Activate the QRCode on receipt feature
- Create a PoS order and create a new customer for it
- Pay the order and print the receipt
- Scan the QRCode on the receipt to create an invoice
- On the new window enter the customer informations and see the invoice
- Now go check the customers list in the backend, you will see 2
customers have been created.
opw-3275938
closes odoo/odoo#122514
Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
Showing
- addons/point_of_sale/controllers/main.py 7 additions, 4 deletionsaddons/point_of_sale/controllers/main.py
- addons/point_of_sale/tests/__init__.py 1 addition, 0 deletionsaddons/point_of_sale/tests/__init__.py
- addons/point_of_sale/tests/test_pos_controller.py 110 additions, 0 deletionsaddons/point_of_sale/tests/test_pos_controller.py
Loading
Please register or sign in to comment