[FIX] account_invoice: Wrong default uom

The UOM by default should be the purchase UOM

opw-775105
This commit is contained in:
amoyaux
2017-10-16 13:14:02 +02:00
parent cd77219cbd
commit fea667a243
+3
View File
@@ -1310,6 +1310,9 @@ class AccountInvoiceLine(models.Model):
self.price_unit = 0.0
domain['uom_id'] = []
else:
# Use the purchase uom by default
self.uom_id = self.product_id.uom_po_id
if part.lang:
product = self.product_id.with_context(lang=part.lang)
else: