~unifield-team/unifield-wm/us-671-homere

« back to all changes in this revision

Viewing changes to sale_override/test/data.yml

[UF-43] fix added noupdate to demo data

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
-
2
 
  In order to test dates in Orders, I create initial data
3
 
-
4
 
    I create 4 partners
5
 
-
6
 
    I create a partner as localmarket 
7
 
-
8
 
  !record {model: res.partner, id: localmarket}:
9
 
    name: Local Market
10
 
    supplier: True
11
 
    partner_type: external
12
 
-
13
 
    I create an address for localmarket
14
 
-
15
 
  !record {model: res.partner.address, id: localmarket_addr}:
16
 
    name: Local Market
17
 
    partner_id: localmarket
18
 
-
19
 
    I create supplier S1
20
 
-
21
 
  !record {model: res.partner, id: supplier1}:
22
 
    name: S1
23
 
    supplier: True
24
 
    partner_type: internal
25
 
-
26
 
    I create the address for S1
27
 
-
28
 
  !record {model: res.partner.address, id: address1}:
29
 
    name: S1
30
 
    partner_id: supplier1
31
 
-
32
 
    I create the supplier S2
33
 
-
34
 
  !record {model: res.partner, id: supplier2}:
35
 
    name: S2
36
 
    supplier: True
37
 
    partner_type: external
38
 
-
39
 
    I create the address for S2
40
 
-
41
 
  !record {model: res.partner.address, id: address2}:
42
 
    name: S2
43
 
    partner_id: supplier2
44
 
-
45
 
    I create the supplier S3
46
 
-
47
 
  !record {model: res.partner, id: supplier3}:
48
 
    name: S3
49
 
    supplier: True
50
 
    partner_type: external
51
 
-
52
 
    I create the address for S3
53
 
-
54
 
  !record {model: res.partner.address, id: address3}:
55
 
    name: S3
56
 
    partner_id: supplier3
57
 
-
58
 
    Create the partner
59
 
-
60
 
  !record {model: res.partner, id: customer1}:
61
 
    credit_limit: 0.0
62
 
    debit_limit: 0.0
63
 
    name: Berthe
64
 
    supplier: true
65
 
-
66
 
    I create the corresponding addresses
67
 
-
68
 
  !record {model: res.partner.address, id: customer_address_1}:
69
 
    country_id: base.fr
70
 
    partner_id: customer1
71
 
    street: street
72
 
    type: default
73
 
-
74
 
    In order to test the procurement list module, I start by creating a new product category
75
 
-
76
 
  !record {model: product.category, id: product_cat1}:
77
 
    name: Categ1
78
 
-
79
 
    I create the product P1
80
 
-
81
 
  !record {model: product.product, id: product1}:
82
 
    categ_id: product_cat1
83
 
    cost_method: standard
84
 
    mes_type: fixed
85
 
    name: P1
86
 
    price_margin: 2.0
87
 
    procure_method: make_to_stock
88
 
    property_stock_inventory: stock.location_inventory
89
 
    property_stock_procurement: stock.location_procurement
90
 
    property_stock_production: stock.location_production
91
 
    seller_delay: '1'
92
 
    standard_price: 100.0
93
 
    supply_method: buy
94
 
    type: product
95
 
    uom_id: product.product_uom_unit
96
 
    uom_po_id: product.product_uom_unit
97
 
    volume : 0.0
98
 
    warranty: 0.0
99
 
    weight: 0.0
100
 
    weight_net: 0.0
101
 
    seller_ids:
102
 
      - sequence: 10
103
 
        min_qty: 0.00
104
 
        name: supplier1
105
 
      - sequence: 20
106
 
        min_qty: 0.00
107
 
        name: supplier2
108
 
      - sequence: 30
109
 
        min_qty: 0.00
110
 
        name: supplier3
111
 
    international_status: product_attributes.int_1
112
 
-
113
 
    I create a second product, P2
114
 
-
115
 
  !record {model: product.product, id: product2}:
116
 
    categ_id: product_cat1
117
 
    cost_method: standard
118
 
    mes_type: fixed
119
 
    name: P2
120
 
    price_margin: 2.0
121
 
    procure_method: make_to_stock
122
 
    property_stock_inventory: stock.location_inventory
123
 
    property_stock_procurement: stock.location_procurement
124
 
    property_stock_production: stock.location_production
125
 
    seller_delay: '1'
126
 
    standard_price: 100.0
127
 
    supply_method: buy
128
 
    type: product
129
 
    uom_id: product.product_uom_unit
130
 
    uom_po_id: product.product_uom_unit
131
 
    volume : 0.0
132
 
    warranty: 0.0
133
 
    weight: 0.0
134
 
    weight_net: 0.0
135
 
    seller_ids:
136
 
      - sequence: 10
137
 
        min_qty: 0.00
138
 
        name: supplier2
139
 
      - sequence: 20
140
 
        min_qty: 0.00
141
 
        name: supplier1
142
 
    international_status: product_attributes.int_1
143
 
-
144
 
    I create the product P3
145
 
-
146
 
  !record {model: product.product, id: product3}:
147
 
    categ_id: product.cat0
148
 
    cost_method: standard
149
 
    mes_type: fixed
150
 
    name: P3
151
 
    price_margin: 2.0
152
 
    procure_method: make_to_stock
153
 
    property_stock_inventory: stock.location_inventory
154
 
    property_stock_procurement: stock.location_procurement
155
 
    property_stock_production: stock.location_production
156
 
    seller_delay: '1'
157
 
    standard_price: 100.0
158
 
    supply_method: buy
159
 
    type: product
160
 
    uom_id: product.product_uom_unit    
161
 
    uom_po_id: product.product_uom_unit
162
 
    volume : 0.0
163
 
    warranty: 0.0
164
 
    weight: 0.0
165
 
    weight_net: 0.0
166
 
    seller_ids:
167
 
      - sequence: 10
168
 
        min_qty: 0.00
169
 
        name: supplier3
170
 
    international_status: product_attributes.int_1