flectra/addons/stock/data/stock_orderpoint_demo.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

7 lines
329 B
YAML

-
!python {model: stock.location, id: False}: |
main_warehouse = self.env['stock.warehouse'].browse(ref('warehouse0'))
main_stock = main_warehouse.lot_stock_id.id
stowar_ops = self.env['stock.warehouse.orderpoint'].search([('warehouse_id', '=', main_warehouse.id)])
stowar_ops.write({'location_id':main_stock})