mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
when the product changes reset the procurement uom
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user