[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) <nim@odoo.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2019-11-28 10:22:25 +00:00
parent 5a1d603c5f
commit ca92a5e8cd
+1
View File
@@ -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):