2
In order to test dates in Orders, I create initial data
8
!record {model: res.partner, id: supplier1}:
12
I create the address for S1
14
!record {model: res.partner.address, id: address1}:
18
I create the supplier S2
20
!record {model: res.partner, id: supplier2}:
24
I create the address for S2
26
!record {model: res.partner.address, id: address2}:
30
I create the supplier S3
32
!record {model: res.partner, id: supplier3}:
36
I create the address for S3
38
!record {model: res.partner.address, id: address3}:
42
In order to test the procurement list module, I start by creating a new product category
44
!record {model: product.category, id: product_cat1}:
47
I create the product P1
49
!record {model: product.product, id: product1}:
50
categ_id: product_cat1
55
procure_method: make_to_stock
56
property_stock_inventory: stock.location_inventory
57
property_stock_procurement: stock.location_procurement
58
property_stock_production: stock.location_production
63
uom_id: product.product_uom_unit
64
uom_po_id: product.product_uom_unit
80
I create a second product, P2
82
!record {model: product.product, id: product2}:
83
categ_id: product_cat1
88
procure_method: make_to_stock
89
property_stock_inventory: stock.location_inventory
90
property_stock_procurement: stock.location_procurement
91
property_stock_production: stock.location_production
96
uom_id: product.product_uom_unit
97
uom_po_id: product.product_uom_unit
110
I create the product P3
112
!record {model: product.product, id: product3}:
113
categ_id: product.cat0
114
cost_method: standard
118
procure_method: make_to_stock
119
property_stock_inventory: stock.location_inventory
120
property_stock_procurement: stock.location_procurement
121
property_stock_production: stock.location_production
123
standard_price: 100.0
126
uom_id: product.product_uom_unit
127
uom_po_id: product.product_uom_unit
b'\\ No newline at end of file'