[FIX] stock_picking_wave: fixed picking wave report
[odoo/odoo.git] / addons / purchase / purchase_stock_demo.yml
1 -
2   !python {model: stock.warehouse}: |
3     pull_obj = self.pool.get('procurement.rule')
4     wh_to_assign = ['stock_warehouse_shop0']
5     for wh_ref in wh_to_assign:
6       warehouse = self.browse(cr, uid, ref('stock.' + wh_ref), context=context)
7       #Force the rewriting of route and rule
8       self.write(cr, uid, warehouse.id, {'buy_to_resupply': True}, context=context)
9
10
11
12