mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
the procurement uom is optional in the orderpoint
This commit is contained in:
@@ -13,13 +13,6 @@ class StockWarehouseOrderpoint(models.Model):
|
||||
procure_uom_id = fields.Many2one(comodel_name='product.uom',
|
||||
string="Procurement UoM")
|
||||
|
||||
@api.multi
|
||||
@api.onchange('product_id')
|
||||
def onchange_product_id(self):
|
||||
for rec in self:
|
||||
if rec.procure_uom_id:
|
||||
rec.procure_uom_id = False
|
||||
|
||||
@api.constrains('product_uom', 'procure_uom_id')
|
||||
def _check_procure_uom(self):
|
||||
if any(orderpoint.product_uom
|
||||
|
||||
Reference in New Issue
Block a user