[IMP] Manufacture should be by default in all warehouses
[odoo/odoo.git] / addons / stock / stock_demo_pre.yml
1 -
2   !record {model: stock.location, id: stock_location_14}:
3     name: Shelf 2
4     posx: 0
5
6 -
7   !record {model: stock.location, id: stock_location_components}:
8     name: Shelf 1
9     posx: 0
10
11 -
12   !python {model: ir.model.data}: |
13     main_warehouse = self.pool.get('stock.warehouse').browse(cr, uid, ref('warehouse0'), context=context)
14     self.pool.get('stock.location').write(cr, uid, [ref('stock_location_14'), ref('stock_location_components')], {'location_id':main_warehouse.lot_stock_id.id}, context=context)