[FIX] account_invoice: Wrong default uom
The UOM by default should be the purchase UOM opw-775105
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user