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

« back to all changes in this revision

Viewing changes to purchase_override/test/data.yml

UF-359 [ADD] Account override module integration

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 a Receivable Account Type
20
 
-
21
 
   !record {model: account.account.type, id: account_account_type_receivable0}:
22
 
      close_method: balance
23
 
      code: receivable
24
 
      name: Receivable
25
 
      sign: 1
26
 
-
27
 
    I create a donation account
28
 
-
29
 
  !record {model: account.account, id: donation_account}:
30
 
    code: '9xxxxx'
31
 
    company_id: base.main_company
32
 
    currency_mode: current
33
 
    name: Olivier please dont forget the tests
34
 
    type: payable
35
 
    user_type: account_account_type_receivable0
36
 
    reconcile: 1
37
 
    activation_date: !eval time.strftime('%Y-01-01')
38
 
 
39
 
-
40
 
    I create supplier S1
41
 
-
42
 
  !record {model: res.partner, id: supplier1}:
43
 
    name: S1
44
 
    supplier: True
45
 
    partner_type: internal
46
 
    donation_payable_account: donation_account
47
 
-
48
 
    I create the address for S1
49
 
-
50
 
  !record {model: res.partner.address, id: address1}:
51
 
    name: S1
52
 
    partner_id: supplier1
53
 
-
54
 
    I create the supplier S2
55
 
-
56
 
  !record {model: res.partner, id: supplier2}:
57
 
    name: S2
58
 
    supplier: True
59
 
    partner_type: external
60
 
    donation_payable_account: donation_account
61
 
-
62
 
    I create the address for S2
63
 
-
64
 
  !record {model: res.partner.address, id: address2}:
65
 
    name: S2
66
 
    partner_id: supplier2
67
 
-
68
 
    I create the supplier S3
69
 
-
70
 
  !record {model: res.partner, id: supplier3}:
71
 
    name: S3
72
 
    supplier: True
73
 
    partner_type: external
74
 
-
75
 
    I create the address for S3
76
 
-
77
 
  !record {model: res.partner.address, id: address3}:
78
 
    name: S3
79
 
    partner_id: supplier3
80
 
-
81
 
    I create the inter-section supplier S4
82
 
-
83
 
  !record {model: res.partner, id: section4}:
84
 
    name: S4
85
 
    supplier: True
86
 
    partner_type: section
87
 
-
88
 
    I create the address for S4
89
 
-
90
 
  !record {model: res.partner.address, id: address4}:
91
 
    name: S4
92
 
    partner_id: section4
93
 
-
94
 
    In order to test the procurement list module, I start by creating a new product category
95
 
-
96
 
  !record {model: product.category, id: product_cat1}:
97
 
    name: Categ1
98
 
-
99
 
    I create the product P1
100
 
-
101
 
  !record {model: product.product, id: product1}:
102
 
    categ_id: product_cat1
103
 
    cost_method: standard
104
 
    mes_type: fixed
105
 
    name: P1
106
 
    price_margin: 2.0
107
 
    procure_method: make_to_stock
108
 
    property_stock_inventory: stock.location_inventory
109
 
    property_stock_procurement: stock.location_procurement
110
 
    property_stock_production: stock.location_production
111
 
    seller_delay: '1'
112
 
    standard_price: 100.0
113
 
    supply_method: buy
114
 
    type: product
115
 
    uom_id: product.product_uom_unit
116
 
    uom_po_id: product.product_uom_unit
117
 
    volume : 0.0
118
 
    warranty: 0.0
119
 
    weight: 0.0
120
 
    weight_net: 0.0
121
 
    seller_ids:
122
 
      - sequence: 10
123
 
        min_qty: 0.00
124
 
        name: supplier1
125
 
      - sequence: 20
126
 
        min_qty: 0.00
127
 
        name: supplier2
128
 
      - sequence: 30
129
 
        min_qty: 0.00
130
 
        name: supplier3
131
 
    international_status: product_attributes.int_1
132
 
-
133
 
    I create a second product, P2
134
 
-
135
 
  !record {model: product.product, id: product2}:
136
 
    categ_id: product_cat1
137
 
    cost_method: standard
138
 
    mes_type: fixed
139
 
    name: P2
140
 
    price_margin: 2.0
141
 
    procure_method: make_to_stock
142
 
    property_stock_inventory: stock.location_inventory
143
 
    property_stock_procurement: stock.location_procurement
144
 
    property_stock_production: stock.location_production
145
 
    seller_delay: '1'
146
 
    standard_price: 100.0
147
 
    supply_method: buy
148
 
    type: product
149
 
    uom_id: product.product_uom_unit
150
 
    uom_po_id: product.product_uom_unit
151
 
    volume : 0.0
152
 
    warranty: 0.0
153
 
    weight: 0.0
154
 
    weight_net: 0.0
155
 
    seller_ids:
156
 
      - sequence: 10
157
 
        min_qty: 0.00
158
 
        name: supplier2
159
 
      - sequence: 20
160
 
        min_qty: 0.00
161
 
        name: supplier1
162
 
    international_status: product_attributes.int_1
163
 
-
164
 
    I create the product P3
165
 
-
166
 
  !record {model: product.product, id: product3}:
167
 
    categ_id: product.cat0
168
 
    cost_method: standard
169
 
    mes_type: fixed
170
 
    name: P3
171
 
    price_margin: 2.0
172
 
    procure_method: make_to_stock
173
 
    property_stock_inventory: stock.location_inventory
174
 
    property_stock_procurement: stock.location_procurement
175
 
    property_stock_production: stock.location_production
176
 
    seller_delay: '1'
177
 
    standard_price: 100.0
178
 
    supply_method: buy
179
 
    type: product
180
 
    uom_id: product.product_uom_unit    
181
 
    uom_po_id: product.product_uom_unit
182
 
    volume : 0.0
183
 
    warranty: 0.0
184
 
    weight: 0.0
185
 
    weight_net: 0.0
186
 
    seller_ids:
187
 
      - sequence: 10
188
 
        min_qty: 0.00
189
 
        name: supplier3
190
 
    international_status: product_attributes.int_1
191
 
-
192
 
  I create an analytic In-kind donation Journal.
193
 
-
194
 
  !record {model: account.analytic.journal, id: account_analytic_inkind_donation0}:
195
 
    code: AIKD
196
 
    name: Analytic In-kind donation Journal
197
 
    type: inkind
198
 
-
199
 
  I create a In-kind donation Journal
200
 
-
201
 
  !record {model: account.journal, id: account_journal_inkind_donation0}:
202
 
    code: IKD
203
 
    company_id: base.main_company
204
 
    name: In-kind donation Journal (test)
205
 
    type: inkind
206
 
    analytic_journal_id: account_analytic_inkind_donation0
207
 
    allow_date: 0