2013-10-22 06:54:46 +00:00
|
|
|
-
|
|
|
|
!python {model: stock.warehouse}: |
|
|
|
|
pull_obj = self.pool.get('procurement.rule')
|
2013-12-06 14:06:59 +00:00
|
|
|
wh_to_assign = ['stock_warehouse_shop0']
|
2013-10-22 06:54:46 +00:00
|
|
|
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
|
2013-10-23 13:40:21 +00:00
|
|
|
self.write(cr, uid, warehouse.id, {'buy_to_resupply': True}, context=context)
|
2013-10-22 06:54:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|