From ab6882dc3cfb4c941ac96d093ca5c95cf64745f4 Mon Sep 17 00:00:00 2001 From: Quentin De Paoli <> Date: Thu, 24 Jun 2010 16:12:25 +0530 Subject: [PATCH] [FIX] l10n_be: vat declaration: the tax code 91 can only be send for the declaration of December bzr revid: ach@tinyerp.com-20100624104225-14w73gpdj3j8quoe --- addons/l10n_be/wizard/l10n_be_account_vat_declaration.py | 3 +++ 1 file changed, 3 insertions(+) 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 a5e664c833a..155e40b256b 100644 --- a/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py +++ b/addons/l10n_be/wizard/l10n_be_account_vat_declaration.py @@ -106,6 +106,9 @@ class l10n_be_vat_declaration(osv.osv_memory): data_of_file +='\n\t\t\n\t\t\t' for item in tax_info: + if item['code'] == '91' and ending_month != 12: + #the tax code 91 can only be send for the declaration of December + continue if item['code']: if item['code'] == '71-72': item['code']='71'