~unifield-team/unifield-wm/us-826

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
-
  In order to make tests, I create some elements in accounting.
-
  I create a fiscalyear
-
  !record {model: account.fiscalyear, id: fiscalyear0-delivery}:
    code: !eval "'FY%s'% (datetime.now().year+10)"
    company_id: base.main_company
    date_start: '2011-01-01'
    date_stop: '2011-12-31'
    name: delivery Fiscal Year 2011
-
  I create the period 000
-
  !record {model: account.period, id: period_000-delivery}:
    company_id: base.main_company
    date_start: '2011-01-01'
    date_stop: '2011-12-31'
    fiscalyear_id: fiscalyear0-delivery
    name: delivery period
    special: 1
- 
  Partner A
- 
  !record {model: res.partner, id: partner_A}:
    name: A
    supplier: true
    customer: true
- 
  Address for Partner A
- 
  !record {model: res.partner.address, id: address_A}:
    partner_id: partner_A
    street: AddressA
-
  Product A
- 
  !record {model: product.product, id: product_A}:
    name: ProdA
    cost_method: average
    seller_ids:
      - sequence: 10
        min_qty: 0.00
        name: partner_A
    international_status: product_attributes.int_1
-
  Product B
-
  !record {model: product.product, id: product_B}:
    name: ProdB
    seller_ids:
      - sequence: 10
        min_qty: 0.00
        name: partner_A
    international_status: product_attributes.int_1
-
  Product C
-
  !record {model: product.product, id: product_C}:
    name: ProdC
    cost_method: average
    seller_ids:
      - sequence: 10
        min_qty: 0.00
        name: partner_A
    international_status: product_attributes.int_1
-
  Product D
-
  !record {model: product.product, id: product_D}:
    name: ProdD
    seller_ids:
      - sequence: 10
        min_qty: 0.00
        name: partner_A
    international_status: product_attributes.int_1
-
  Product E
-
  !record {model: product.product, id: product_E}:
    name: ProdE
    cost_method: average
    seller_ids:
      - sequence: 10
        min_qty: 0.00
        name: partner_A
    international_status: product_attributes.int_1
-
  I edit all the journals to include the proprietary instance
-
  !python {model: account.journal}: |
    journal_ids = self.search(cr, uid, [])
    company = self.pool.get('res.company').browse(cr, uid, uid, context=context)
    if company and company.instance_id:
      self.write(cr, uid, journal_ids, {'instance_id': company.instance_id.id})
-
  Location Test for testing the request_location_id on the IR
-
  !record {model: stock.location, id: location_test}:
    name: Location Test