Skip to content
Snippets Groups Projects
Commit 2d5f22f0 authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[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#41018

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent abbbae16
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment