flectra/addons/stock/data/stock_demo_pre.yml

20 lines
584 B
YAML
Raw Permalink Normal View History

-
!record {model: stock.location, id: stock_location_14}:
name: Shelf 2
branch_id: base_branch_company.data_branch_1
posx: 0
-
!record {model: stock.location, id: stock_location_components}:
name: Shelf 1
branch_id: base_branch_company.data_branch_1
posx: 0
-
!python {model: ir.model.data, id: False}: |
main_warehouse = self.env['stock.warehouse'].browse(ref('warehouse0'))
self.env['stock.location'].browse([
ref('stock_location_14'),
ref('stock_location_components')
]).write({'location_id':main_warehouse.lot_stock_id.id})