[FIX] stock: typo not in
This commit is contained in:
parent
b886e11e47
commit
f1a9ab7025
|
@ -3044,8 +3044,8 @@ class stock_warehouse(osv.osv):
|
||||||
def _location_used(self, cr, uid, location_id, warehouse, context=None):
|
def _location_used(self, cr, uid, location_id, warehouse, context=None):
|
||||||
pull_obj = self.pool['procurement.rule']
|
pull_obj = self.pool['procurement.rule']
|
||||||
push_obj = self.pool['stock.location.path']
|
push_obj = self.pool['stock.location.path']
|
||||||
pulls = pull_obj.search(cr, uid, ['&', ('route_id', 'not in ', [x.id for x in warehouse.route_ids]), '|', ('location_src_id', '=', location_id), ('location_id', '=', location_id)], context=context)
|
pulls = pull_obj.search(cr, uid, ['&', ('route_id', 'not in', [x.id for x in warehouse.route_ids]), '|', ('location_src_id', '=', location_id), ('location_id', '=', location_id)], context=context)
|
||||||
pushs = push_obj.search(cr, uid, ['&', ('route_id', 'not in ', [x.id for x in warehouse.route_ids]), '|', ('location_from_id', '=', location_id), ('location_dest_id', '=', location_id)], context=context)
|
pushs = push_obj.search(cr, uid, ['&', ('route_id', 'not in', [x.id for x in warehouse.route_ids]), '|', ('location_from_id', '=', location_id), ('location_dest_id', '=', location_id)], context=context)
|
||||||
if pulls or pushs:
|
if pulls or pushs:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue