67
64
product_id: outgoing_product_B
69
66
life_date: !eval datetime.today().strftime('%Y-%m-%d')
73
!record {model: stock.inventory, id: inv1}:
74
name: MSF Outgoing YML tests
75
company_id: base.main_company
76
date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
77
date_done: !eval time.strftime('%Y-%m-%d %H:%M:%S')
79
- company_id: base.main_company
80
location_id: stock.stock_location_stock
81
product_id: outgoing_product_A
82
prod_lot_id : outgoing_lot_Ai
84
product_uom: product.product_uom_unit
85
- company_id: base.main_company
86
location_id: stock.stock_location_stock
87
product_id: outgoing_product_A
88
prod_lot_id : outgoing_lot_As
90
product_uom: product.product_uom_unit
91
- company_id: base.main_company
92
location_id: stock.stock_location_stock
93
product_id: outgoing_product_B
94
prod_lot_id : outgoing_lot_Bi
96
product_uom: product.product_uom_unit
97
- company_id: base.main_company
98
location_id: stock.stock_location_stock
99
product_id: outgoing_product_B
100
prod_lot_id : outgoing_lot_Bs
102
product_uom: product.product_uom_unit
104
Confirm the inventory
106
!python {model: stock.inventory}: |
107
self.action_confirm(cr,uid,[ref('inv1')])
108
self.action_done(cr, uid,[ref('inv1')])