182
182
for wl in self.browse(cr, uid, ids, context=context):
183
183
if wl.parent_model in ('tender', 'sale.order', 'purchase.order'):
184
categ = self.pool.get(wl.parent_model).read(cr, uid, wl.parent_id.id, ['categ'], context=context)['categ']
184
categ = self.pool.get(wl.parent_model).read(cr, uid, wl.parent_id, ['categ'], context=context)['categ']
186
186
not_ok_product_ids = self.pool.get('product.product').search(cr, uid, [
187
187
('id', 'in', product_ids),