when the product changes reset the procurement uom

This commit is contained in:
jbeficent
2016-10-24 19:10:26 +02:00
committed by lreficent
parent 0c010e88a3
commit 16fe74b0b4

View File

@@ -16,4 +16,5 @@ class StockWarehouseOrderpoint(models.Model):
@api.onchange('product_id')
def onchange_product_id(self):
for rec in self:
rec.procure_uom_id = rec.product_id.uom_id
if rec.procure_uom_id:
rec.procure_uom_id = False