From a41d8ef937f83b5e5501ab6beb04a908c8a6dea4 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Fri, 10 Apr 2015 10:37:54 +0200 Subject: [PATCH] [FIX] account_voucher: VAT warning VAT error shouldn't be displayed as it doesn't look deep enough for information. It is better to raise this kind of exception at the creation of a VAT than at its use. opw:631769 --- addons/account_voucher/account_voucher.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index b1e8e8ecb08..9f9196521cc 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -1237,11 +1237,6 @@ class account_voucher(osv.osv): 'account_tax_id': voucher.tax_id.id, }) - if move_line.get('account_tax_id', False): - tax_data = tax_obj.browse(cr, uid, [move_line['account_tax_id']], context=context)[0] - if not (tax_data.base_code_id and tax_data.tax_code_id): - raise osv.except_osv(_('No Account Base Code and Account Tax Code!'),_("You have to configure account base code and account tax code on the '%s' tax!") % (tax_data.name)) - # compute the amount in foreign currency foreign_currency_diff = 0.0 amount_currency = False