From 5a84e35e1fdd1d878595663aa47a47818b796b68 Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 24 Jan 2012 17:52:31 +0530 Subject: [PATCH] [IMP] kept only vat number in VATNUMBER tag under Declarant tag bzr revid: bde@tinyerp.com-20120124122231-fxtfvg9z4j72aez1 --- addons/l10n_be/wizard/l10n_be_account_vat_declaration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py b/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py index bd7215e9d41..9a6aae3891b 100644 --- a/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py +++ b/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py @@ -80,6 +80,7 @@ class l10n_be_vat_declaration(osv.osv_memory): if not vat_no: raise osv.except_osv(_('Data Insufficient'), _('No VAT Number Associated with Main Company!')) vat_no = vat_no.replace(' ','').upper() + vat = vat_no[2:] tax_code_ids = obj_tax_code.search(cr, uid, [], context=context) ctx = context.copy() @@ -103,7 +104,7 @@ class l10n_be_vat_declaration(osv.osv_memory): data_of_file +='\n\t' data_of_file +='\n\t' data_of_file +='\n\t\t' - data_of_file +='\n\t\t\n\t\t\t'+str(vat_no)+'' + data_of_file +='\n\t\t\n\t\t\t'+str(vat)+'' data_of_file +='\n\t\t\t'+obj_company.name+'' data_of_file +='\n\t\t\t'+address+'' data_of_file +='\n\t\t\t'+post_code+''