2
Creating a res.partner record
4
!record {model: res.partner, id: outgoing_partner_A}:
9
Creating a res.partner.address record
11
!record {model: res.partner.address, id: outgoing_address_A}:
12
partner_id: outgoing_partner_A
17
!record {model: product.product, id: outgoing_product_A}:
19
batch_management: true
21
international_status: product_attributes.int_1
25
!record {model: product.product, id: outgoing_product_B}:
27
batch_management: false
29
international_status: product_attributes.int_1
33
!record {model: product.product, id: outgoing_product_C}:
35
batch_management: false
37
international_status: product_attributes.int_1
39
Production Lot Ai (i stands for internal ** replaced by standard **)
41
!record {model: stock.production.lot, id: outgoing_lot_Ai}:
43
product_id: outgoing_product_A
45
life_date: !eval datetime.today().strftime('%Y-%m-%d')
47
Production Lot As (s stands for standard)
49
!record {model: stock.production.lot, id: outgoing_lot_As}:
51
product_id: outgoing_product_A
53
life_date: !eval datetime.today().strftime('%Y-%m-%d')
55
Production Lot Bi (i stands for internal)
57
!record {model: stock.production.lot, id: outgoing_lot_Bi}:
59
product_id: outgoing_product_B
61
life_date: !eval datetime.today().strftime('%Y-%m-%d')
63
Production Lot Bs (s stands for standard ** replaced by internal **)
65
!record {model: stock.production.lot, id: outgoing_lot_Bs}:
67
product_id: outgoing_product_B
69
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')])