2 In order to test BVR printing. I create Partner data .
4 !record {model: res.partner.category, id: res_partner_category_bvr}:
7 I create BVR DUMMY Customer.
9 !record {model: res.partner, id: res_partner_bvr}:
11 - res_partner_category_bvr
14 I create contact address for BVR DUMMY.
16 !record {model: res.partner, id: res_partner_address1}:
18 parent_id: res_partner_bvr
19 street: Route de Bélario
22 I create invoice address for BVR DUMMY.
24 !record {model: res.partner, id: res_partner_address2}:
25 name: 'Ferdinand Gassauer'
26 parent_id: res_partner_bvr
27 street: Route de Bélario
30 I create delivery address for BVR DUMMY.
32 !record {model: res.partner, id: res_partner_address3}:
33 name: 'Claude Philipona'
34 parent_id: res_partner_bvr
35 street: Route de Bélario
39 In order to test the PDF BVR webkit reports defined on an invoice, we will create a Invoice Record
41 !record {model: account.invoice, id: l10n_ch_invoice, view: False}:
43 company_id: base.main_company
44 partner_id: res_partner_bvr
47 account_id: account.a_recv
48 name: BVR test invoice
51 In order to test the BVR report, I will assign a bank to the invoice
53 !record {model: account.invoice, id: l10n_ch_invoice, view: False}:
54 partner_bank_id: main_partner_bank
56 In order to test the PDF reports defined on a l10n_ch, we will print BVR Report
58 !python {model: account.invoice}: |
59 from tools.test_reports import try_report
60 company = self.pool.get('res.users').browse(cr, uid, uid).company_id
61 try_report(cr, uid, 'report.invoice_web_bvr', [ref('l10n_ch_invoice')]) or 'Unable to find Webkit'