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

« back to all changes in this revision

Viewing changes to sales_followup/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 Sales Order Follow-up, I create initial data
3
 
-
4
 
  I create a supplier
5
 
-
6
 
  !record {model: res.partner, id: supplier1}:
7
 
    name: Supplier 1
8
 
    supplier: True
9
 
    partner_type: external
10
 
-
11
 
  I create an address for Supplier 1
12
 
-
13
 
  !record {model: res.partner.address, id: supplier1_addr}:
14
 
    name: Supplier 1
15
 
    partner_id: supplier1
16
 
-
17
 
  I create a customer
18
 
-
19
 
  !record {model: res.partner, id: customer1}:
20
 
    name: Customer 1
21
 
    customer: True
22
 
    partner_type: internal
23
 
-
24
 
  I create an address for Customer 1
25
 
-
26
 
  !record {model: res.partner.address, id: customer1_addr}:
27
 
    name: Customer 1
28
 
    partner_id: customer1
29
 
-
30
 
  I create a product category
31
 
-
32
 
  !record {model: product.category, id: prod_cat1}:
33
 
    name: Categ1
34
 
-
35
 
    I create the product P1
36
 
-
37
 
  !record {model: product.product, id: product1}:
38
 
    categ_id: prod_cat1
39
 
    cost_method: standard
40
 
    mes_type: fixed
41
 
    name: P1
42
 
    price_margin: 2.0
43
 
    procure_method: make_to_order
44
 
    property_stock_inventory: stock.location_inventory
45
 
    property_stock_procurement: stock.location_procurement
46
 
    property_stock_production: stock.location_production
47
 
    seller_delay: '1'
48
 
    standard_price: 75000.00
49
 
    supply_method: buy
50
 
    type: product
51
 
    uom_id: product.product_uom_unit
52
 
    uom_po_id: product.product_uom_unit
53
 
    volume : 0.0
54
 
    warranty: 0.0
55
 
    weight: 0.0
56
 
    weight_net: 0.0
57
 
    seller_ids:
58
 
      - sequence: 10
59
 
        min_qty: 0.00
60
 
        name: supplier1
61
 
    international_status: product_attributes.int_1
62
 
-
63
 
    I create a second product, P2
64
 
-
65
 
  !record {model: product.product, id: product2}:
66
 
    categ_id: prod_cat1
67
 
    cost_method: standard
68
 
    mes_type: fixed
69
 
    name: P2
70
 
    price_margin: 2.0
71
 
    procure_method: make_to_stock
72
 
    property_stock_inventory: stock.location_inventory
73
 
    property_stock_procurement: stock.location_procurement
74
 
    property_stock_production: stock.location_production
75
 
    seller_delay: '1'
76
 
    standard_price: 100.0
77
 
    supply_method: buy
78
 
    type: product
79
 
    uom_id: product.product_uom_unit
80
 
    uom_po_id: product.product_uom_unit
81
 
    volume : 0.0
82
 
    warranty: 0.0
83
 
    weight: 0.0
84
 
    weight_net: 0.0
85
 
    international_status: product_attributes.int_1
86
 
-
87
 
    I create the product P3
88
 
-
89
 
  !record {model: product.product, id: product3}:
90
 
    categ_id: prod_cat1
91
 
    cost_method: standard
92
 
    mes_type: fixed
93
 
    name: P3
94
 
    price_margin: 2.0
95
 
    procure_method: make_to_stock
96
 
    property_stock_inventory: stock.location_inventory
97
 
    property_stock_procurement: stock.location_procurement
98
 
    property_stock_production: stock.location_production
99
 
    seller_delay: '1'
100
 
    standard_price: 100.0
101
 
    supply_method: buy
102
 
    type: product
103
 
    uom_id: product.product_uom_unit    
104
 
    uom_po_id: product.product_uom_unit
105
 
    volume : 0.0
106
 
    warranty: 0.0
107
 
    weight: 0.0
108
 
    weight_net: 0.0
109
 
    international_status: product_attributes.int_1
110
 
-
111
 
    I create the product P4
112
 
-
113
 
  !record {model: product.product, id: product4}:
114
 
    categ_id: prod_cat1
115
 
    cost_method: standard
116
 
    mes_type: fixed
117
 
    name: P4
118
 
    price_margin: 2.0
119
 
    procure_method: make_to_order
120
 
    property_stock_inventory: stock.location_inventory
121
 
    property_stock_procurement: stock.location_procurement
122
 
    property_stock_production: stock.location_production
123
 
    seller_delay: '1'
124
 
    standard_price: 7200.0
125
 
    supply_method: buy
126
 
    type: product
127
 
    uom_id: product.product_uom_unit
128
 
    uom_po_id: product.product_uom_unit
129
 
    volume : 0.0
130
 
    warranty: 0.0
131
 
    weight: 0.0
132
 
    weight_net: 0.0
133
 
    seller_ids:
134
 
      - sequence: 10
135
 
        min_qty: 0.00
136
 
        name: supplier1
137
 
    international_status: product_attributes.int_1
138
 
-
139
 
  I create Physical Inventory for the products.
140
 
-
141
 
   !record {model: stock.inventory, id: stock_inventory_physicalinventoy0}:
142
 
    company_id: base.main_company
143
 
    date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
144
 
    date_done: !eval time.strftime('%Y-%m-%d %H:%M:%S')
145
 
    inventory_line_id:
146
 
      - company_id: base.main_company
147
 
        location_id: stock.stock_location_stock
148
 
        product_id: product3
149
 
        product_qty: 2000.0
150
 
        product_uom: product.product_uom_unit
151
 
    name: Physical inventory
152
 
    state: draft
153
 
-
154
 
  I confirm the Inventory for P3
155
 
-
156
 
  !python {model: stock.inventory}: |
157
 
   self.action_confirm(cr,uid,[ref('stock_inventory_physicalinventoy0')])
158
 
   self.action_done(cr,uid,[ref('stock_inventory_physicalinventoy0')])