[FIX] stock_picking_wave: fixed picking wave report
[odoo/odoo.git] / addons / purchase / purchase_data.yml
1 -
2   !python {model: ir.values, id: purchase_default_set}: |
3     whr = self.pool.get('stock.warehouse').browse(cr, uid, ref('stock.warehouse0'), context=context)
4     self.set_default(cr, uid, 'purchase.order', 'picking_type_id', whr.in_type_id.id, for_all_users=True, company_id=True, condition=False)
5 -
6   !python {model: stock.warehouse}: |
7     main_warehouse = self.browse(cr, uid, ref('stock.warehouse0'), context=context)
8     #Force the rewriting of route and rule
9     self.write(cr, uid, main_warehouse.id, {'buy_to_resupply': True}, context=context)
10