2013-10-22 06:54:46 +00:00
|
|
|
-
|
|
|
|
!python {model: stock.warehouse}: |
|
|
|
|
pull_obj = self.pool.get('procurement.rule')
|
|
|
|
wh_to_assign = ['stock_warehouse_shop0','stock_warehouse_shop1','warehouse_icecream']
|
|
|
|
for wh_ref in wh_to_assign:
|
|
|
|
warehouse = self.browse(cr, uid, ref('stock.' + wh_ref), context=context)
|
2013-10-23 09:12:26 +00:00
|
|
|
#Force the rewriting of route and rule
|
|
|
|
self.write(cr,uid,warehouse.id,{'can_buy_for_resupply':True},context=context)
|
2013-10-22 06:54:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|