This commit is contained in:
lreficent
2018-01-09 18:26:29 +01:00
committed by Joan Mateu Jordi
parent bca86fbcf2
commit e2ec74d532

View File

@@ -16,7 +16,7 @@ class ProductTemplate(models.Model):
orderpoint = self.env['stock.warehouse.orderpoint'].search([
('procure_uom_id.category_id', '!=',
rec.uom_id.category_id.id),
('product_id.product_tmpl_id', '=', rec.id)], limit=1)
('product_id', 'in', rec.product_variant_ids.ids)], limit=1)
if orderpoint:
raise UserError(
_("At least one reordering rule for this product has a "