From ca92a5e8cd2d8d637a8d0ea9d1661e61ec3fc5d1 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Thu, 28 Nov 2019 09:46:05 +0000 Subject: [PATCH] [FIX] point_of_sale: add UoM to invoice line Enable units of measure from Settings. Go to Point of Sale, enable "Invoicing" from the PoS, open the session, sell something specifing customer and invoice. Close the session and post. Check the sale order, UoM is specified. Now check the associated invoice, UoM is missing. This is because the UoM is not propagated from the sale order to the invoice. Adding the missing value opw-2129428 closes odoo/odoo#41040 X-original-commit: 2d5f22f040e7d28a17191cd6cc512b58b929efa1 Signed-off-by: Nicolas Martinelli (nim) --- addons/point_of_sale/models/pos_order.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py index 22d924dcfc6..81399d6d431 100644 --- a/addons/point_of_sale/models/pos_order.py +++ b/addons/point_of_sale/models/pos_order.py @@ -190,6 +190,7 @@ class PosOrder(models.Model): 'price_unit': order_line.price_unit, 'name': order_line.product_id.display_name, 'tax_ids': [(6, 0, order_line.tax_ids.ids)], + 'product_uom_id': order_line.product_uom_id.id, } def _get_pos_anglo_saxon_price_unit(self, product, partner_id, quantity):