[FIX] purchase_requisition: correct search domain
bug introduced by ef16266ad6
Task : 2210230
closes odoo/odoo#47400
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in:
@@ -85,7 +85,7 @@ class PurchaseRequisition(models.Model):
|
||||
('vendor_id', '=', self.vendor_id.id),
|
||||
('state', '=', 'ongoing'),
|
||||
('type_id.quantity_copy', '=', 'none'),
|
||||
('company_id', '=', self.company_id),
|
||||
('company_id', '=', self.company_id.id),
|
||||
])
|
||||
if any(requisitions):
|
||||
title = _("Warning for %s") % self.vendor_id.name
|
||||
|
||||
Reference in New Issue
Block a user