[FIX] purchase: typo

bzr revid: qdp-launchpad@openerp.com-20131024075054-mq5u06qmhd7oqwa9
This commit is contained in:
Quentin (OpenERP) 2013-10-24 09:50:54 +02:00
parent 6d8727e0f3
commit 52c30fdd38
1 changed files with 2 additions and 2 deletions

View File

@ -151,6 +151,6 @@ class stock_warehouse(osv.osv):
def change_route(self, cr, uid, ids, warehouse, new_reception_step=False, new_delivery_step=False, context=None):
res = super(stock_warehouse, self).change_route(cr, uid, ids, warehouse, new_reception_step=new_reception_step, new_delivery_step=new_delivery_step, context=context)
if warehouse.wh_input_stock_loc_id != warehouse.buy_pull_rule_id.id.location_id:
self.pool.get('procurement.rule').write(cr, uid, warehouse.buy_pull_rule_id.id, {'location_id': warehouse.wh_input_stock_loc_id.id}, context=context)
if warehouse.wh_input_stock_loc_id != warehouse.buy_pull_id.id.location_id:
self.pool.get('procurement.rule').write(cr, uid, warehouse.buy_pull_id.id, {'location_id': warehouse.wh_input_stock_loc_id.id}, context=context)
return res