2
In order to make tests, I create some elements in accounting.
6
!record {model: account.fiscalyear, id: fiscalyear0-delivery}:
7
code: !eval "'FY%s'% (datetime.now().year+10)"
8
company_id: base.main_company
9
date_start: '2011-01-01'
10
date_stop: '2011-12-31'
11
name: delivery Fiscal Year 2011
13
I create the period 000
15
!record {model: account.period, id: period_000-delivery}:
16
company_id: base.main_company
17
date_start: '2011-01-01'
18
date_stop: '2011-12-31'
19
fiscalyear_id: fiscalyear0-delivery
25
!record {model: res.partner, id: partner_A}:
32
!record {model: res.partner.address, id: address_A}:
38
!record {model: product.product, id: product_A}:
45
international_status: product_attributes.int_1
49
!record {model: product.product, id: product_B}:
55
international_status: product_attributes.int_1
59
!record {model: product.product, id: product_C}:
66
international_status: product_attributes.int_1
70
!record {model: product.product, id: product_D}:
76
international_status: product_attributes.int_1
80
!record {model: product.product, id: product_E}:
87
international_status: product_attributes.int_1
89
I edit all the journals to include the proprietary instance
91
!python {model: account.journal}: |
92
journal_ids = self.search(cr, uid, [])
93
company = self.pool.get('res.company').browse(cr, uid, uid, context=context)
94
if company and company.instance_id:
95
self.write(cr, uid, journal_ids, {'instance_id': company.instance_id.id})
97
Location Test for testing the request_location_id on the IR
99
!record {model: stock.location, id: location_test}: