diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-11-28 09:46:05 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2019-11-28 10:22:25 +0000 |
| commit | ca92a5e8cd2d8d637a8d0ea9d1661e61ec3fc5d1 (patch) | |
| tree | a14806c928544cbd7db705c675f1aa1b86403d63 | |
| parent | 5a1d603c5f437f9f05da3b6d5be70929fe8c7fca (diff) | |
[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>
| -rw-r--r-- | addons/point_of_sale/models/pos_order.py | 1 |
1 files changed, 1 insertions, 0 deletions
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): |
