From 87921b4e5bc1188b9efeef72415490103971956e Mon Sep 17 00:00:00 2001 From: "Bharat Devnani (OpenERP)" Date: Tue, 24 Jan 2012 12:39:03 +0530 Subject: [PATCH] [IMP] improved the useability bzr revid: bde@tinyerp.com-20120124070903-ufp2njveavrrcrfj --- addons/l10n_be/wizard/l10n_be_account_vat_declaration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ad60f1cba26..df1b6dc6617 100644 --- a/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py +++ b/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py @@ -42,7 +42,7 @@ class l10n_be_vat_declaration(osv.osv_memory): _columns = { 'name': fields.char('File Name', size=32), 'period_id': fields.many2one('account.period','Period', required=True), - 'tax_code_id': fields.many2one('account.tax.code', 'Tax Code', domain=[('parent_id', '=', False)]), + 'tax_code_id': fields.many2one('account.tax.code', 'Tax Code', domain=[('parent_id', '=', False)], help="Keep empty to use the company from partner"), 'msg': fields.text('File created', size=64, readonly=True), 'file_save': fields.binary('Save File'), 'ask_restitution': fields.boolean('Ask Restitution',help='It indicates whether a resitution is to made or not?'), @@ -94,12 +94,12 @@ class l10n_be_vat_declaration(osv.osv_memory): issued_by = vat_no[:2] comments = data['comments'] or '' type = data['identification_type'] or '' - val = data['other'] or '' + other = data['other'] or '' send_ref = str(obj_company.partner_id.id) + str(account_period.date_start[5:7]) + str(account_period.date_stop[:4]) data_of_file = '\n' - data_of_file +='\n\t \n\t\t'+obj_company.company_registry+' \n\t\t'+obj_company.name+' \n\t\t'+address+' \n\t\t'+post_code+' \n\t\t'+city+' \n\t\t'+country_code+' \n\t\t'+email+' \n\t\t'+phone+' \n\t' + data_of_file +='\n\t \n\t\t'+obj_company.company_registry+' \n\t\t'+obj_company.name+' \n\t\t'+address+' \n\t\t'+post_code+' \n\t\t'+city+' \n\t\t'+country_code+' \n\t\t'+email+' \n\t\t'+phone+' \n\t' data_of_file +='\n\t' data_of_file +='\n\t' data_of_file +='\n\t\t'