From 5f8663cdb6758d9a7b2d7aee7c92a627f8b463ee Mon Sep 17 00:00:00 2001 From: Darshan Kalola Date: Tue, 11 Aug 2015 11:52:12 +0530 Subject: [PATCH] [FIX]point_of_sale: fix the issue wrong invoice total when create the invoice from pos order form --- addons/point_of_sale/point_of_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index bbc5d2497e5..bdf8e989fec 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1140,6 +1140,7 @@ class pos_order(osv.osv): invoice_line.invoice_line_tax_ids = [tax.id for tax in invoice_line.invoice_line_tax_ids if tax.company_id.id == company_id] # We convert a new id object back to a dictionary to write to bridge between old and new api inv_line = invoice_line._convert_to_write(invoice_line._cache) + inv_line.update(price_unit=line.price_unit, discount=line.discount) inv_line_ref.create(cr, SUPERUSER_ID, inv_line, context=local_context) inv_ref.compute_taxes(cr, SUPERUSER_ID, [inv_id], context=local_context) self.signal_workflow(cr, uid, [order.id], 'invoice')