-
- Downloads
[FIX] pos_sale: correctly assign partners in the invoice
When settling a sale.order from the pos app, it's possible that the sale.order
have different partners assigned to it (partner_id, partner_shipping_id,
partner_invoice_id). After this commit, we are now properly assigning these
partners to the generated invoice.
Additionally, this commit makes the settling of sale.order more robust by
avoiding issue on having multiple incompatible sale.orders in a pos.order (more
than 2 sale.orders and their partners are not the same). After this commit, we
are only reusing the current pos.order as container of the new sale.order to
settle if the sale.order is compatible to the current pos.order. Basically, we
now only allow adding new sale order to the current order if the partner_id,
partner_invoice_id and partner_shipping_id of the new sale.order are the same to
the current pos.order's linked sale.order. In other words, if the new sale.order
to settle is incompatible to the current pos.order, we create a new pos.order to
settle that sale.order.
closes odoo/odoo#118492
Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
Showing
- addons/pos_sale/models/pos_order.py 10 additions, 7 deletionsaddons/pos_sale/models/pos_order.py
- addons/pos_sale/static/src/js/OrderManagementScreen/SaleOrderManagementScreen.js 34 additions, 1 deletion...src/js/OrderManagementScreen/SaleOrderManagementScreen.js
- addons/pos_sale/static/tests/helpers/ProductScreenTourMethods.js 13 additions, 0 deletions...pos_sale/static/tests/helpers/ProductScreenTourMethods.js
- addons/pos_sale/static/tests/tours/pos_sale_tours.js 19 additions, 0 deletionsaddons/pos_sale/static/tests/tours/pos_sale_tours.js
- addons/pos_sale/tests/test_pos_sale_flow.py 32 additions, 0 deletionsaddons/pos_sale/tests/test_pos_sale_flow.py
Loading
Please register or sign in to comment