From eb43dce82109da702efdfdc6007c880d849c8311 Mon Sep 17 00:00:00 2001 From: Noviat <> Date: Thu, 5 May 2011 17:02:41 +0200 Subject: [PATCH] [FIX] l10n_be: fixed vat declaration wizard in order to handle correctly the flags ask_restitution and ask_payment + fixed typo in fieldname. Thanks Noviat for the patch bzr revid: qdp-launchpad@openerp.com-20110505150241-e1o9cazksc8ccynp --- addons/l10n_be/wizard/l10n_be_account_vat_declaration.py | 5 +++-- .../l10n_be/wizard/l10n_be_account_vat_declaration_view.xml | 2 +- 2 files changed, 4 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 30219ee5513..461a43a57d2 100644 --- a/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py +++ b/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py @@ -44,7 +44,7 @@ class l10n_be_vat_declaration(osv.osv_memory): 'tax_code_id': fields.many2one('account.tax.code', 'Tax Code', domain=[('parent_id', '=', False)]), 'msg': fields.text('File created', size=64, readonly=True), 'file_save': fields.binary('Save File'), - 'ask_resitution': fields.boolean('Ask Restitution',help='It indicates whether a resitution is to made or not?'), + 'ask_restitution': fields.boolean('Ask Restitution',help='It indicates whether a resitution is to made or not?'), 'ask_payment': fields.boolean('Ask Payment',help='It indicates whether a payment is to made or not?'), 'client_nihil': fields.boolean('Last Declaration of Enterprise',help='Tick this case only if it concerns only the last statement on the civil or cessation of activity'), } @@ -99,7 +99,8 @@ class l10n_be_vat_declaration(osv.osv_memory): data_of_file += ''+quarter+'\n\t\t\t' else: data_of_file += ''+starting_month+'\n\t\t\t' - data_of_file += '' + str(account_period.date_stop[:4]) + '\n\t\t\n\t\t' + data_of_file += '' + str(account_period.date_stop[:4]) + '\n\t\t\n' + data_of_file += '\t\t' data_of_file += '\n\t\t'+ (data['client_nihil'] and 'YES' or 'NO') +'' data_of_file +='\n\t\t\n\t\t\t' diff --git a/addons/l10n_be/wizard/l10n_be_account_vat_declaration_view.xml b/addons/l10n_be/wizard/l10n_be_account_vat_declaration_view.xml index fe81a4f9848..4b46b737a39 100644 --- a/addons/l10n_be/wizard/l10n_be_account_vat_declaration_view.xml +++ b/addons/l10n_be/wizard/l10n_be_account_vat_declaration_view.xml @@ -21,7 +21,7 @@ - +