flectra/addons/stock/data/stock_demo_pre.yml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

18 lines
486 B
YAML

-
!record {model: stock.location, id: stock_location_14}:
name: Shelf 2
posx: 0
-
!record {model: stock.location, id: stock_location_components}:
name: Shelf 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})