From a7d9e9975c432403f9a83b0d948c3865ec538249 Mon Sep 17 00:00:00 2001 From: mtr Date: Tue, 25 Jan 2011 15:48:43 +0530 Subject: [PATCH] [IMP] l10n_ch:solved the integrity error i.e. null value in column address_invoice_id violates not-null constraintin the yaml. bzr revid: mtr@mtr-20110125101843-wwjdetjdckugcucj --- addons/l10n_ch/test/l10n_ch_report.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/addons/l10n_ch/test/l10n_ch_report.yml b/addons/l10n_ch/test/l10n_ch_report.yml index 1f4a89b93f4..8c7c64bef29 100644 --- a/addons/l10n_ch/test/l10n_ch_report.yml +++ b/addons/l10n_ch/test/l10n_ch_report.yml @@ -5,18 +5,22 @@ acc_number: 001-1001-1291-12323 bank: base.res_bank_1 bvr_number: 01-101-12 - name: Argolait Main Account - partner_id: base.res_partner_agrolait + name: Asustek Main Account + partner_id: base.res_partner_asus sequence: 0.0 state: bvbank - In order to test the BVR report, I will assign a bank to the invoice - - !record {model: account.invoice, id: account.test_invoice_1}: + !record {model: account.invoice, id: test_invoice_2}: partner_bank_id: res_partner_bank_account0 + address_invoice_id: base.res_partner_address_tang + partner_id: base.res_partner_asus + account_id: account.a_recv + company_id: base.main_company - In order to test the PDF reports defined on a l10n_ch, we will print BVR Report - !python {model: account.invoice}: | from tools.test_reports import try_report - try_report(cr, uid, 'report.invoice_web_bvr', [ref('account.test_invoice_1')]) \ No newline at end of file + try_report(cr, uid, 'report.invoice_web_bvr', [ref('test_invoice_2')]) \ No newline at end of file