diff --git a/account_financial_report/wizard/wizard_account_balance_2_report.py b/account_financial_report/wizard/wizard_account_balance_2_report.py index 2862ad4c..439463f3 100644 --- a/account_financial_report/wizard/wizard_account_balance_2_report.py +++ b/account_financial_report/wizard/wizard_account_balance_2_report.py @@ -29,6 +29,7 @@ from osv import osv,fields import pooler import time +from tools.translate import _ class wizard_account_balance_gene_2(osv.osv_memory): _name = "wizard.report.account.balance.gene.2" @@ -141,7 +142,7 @@ class wizard_account_balance_gene_2(osv.osv_memory): minmax = cr.dictfetchall() if minmax: if (data['form']['date_to'] < minmax[0]['inicio']) or (data['form']['date_from'] > minmax[0]['fin']): - raise osv.except_osv(_('Error !'),('La intersepcion entre el periodo y fecha es vacio')) + raise osv.except_osv(_('Error !'),_('La intersepcion entre el periodo y fecha es vacio')) return {'type': 'ir.actions.report.xml', 'report_name': 'account.account.balance.gene.2', 'datas': data} diff --git a/account_financial_report/wizard/wizard_account_balance_4_report.py b/account_financial_report/wizard/wizard_account_balance_4_report.py index e4b3f58d..d53d4730 100644 --- a/account_financial_report/wizard/wizard_account_balance_4_report.py +++ b/account_financial_report/wizard/wizard_account_balance_4_report.py @@ -29,6 +29,7 @@ from osv import osv,fields import pooler import time +from tools.translate import _ class wizard_report(osv.osv_memory): _name = "wizard.report" @@ -141,7 +142,7 @@ class wizard_report(osv.osv_memory): minmax = cr.dictfetchall() if minmax: if (data['form']['date_to'] < minmax[0]['inicio']) or (data['form']['date_from'] > minmax[0]['fin']): - raise osv.except_osv(_('Error !'),('La intersepcion entre el periodo y fecha es vacio')) + raise osv.except_osv(_('Error !'),_('La intersepcion entre el periodo y fecha es vacio')) return {'type': 'ir.actions.report.xml', 'report_name': 'wizard.report.reporte', 'datas': data} diff --git a/account_financial_report/wizard/wizard_account_balance_report.py b/account_financial_report/wizard/wizard_account_balance_report.py index 61de2d60..8b3ecfd4 100644 --- a/account_financial_report/wizard/wizard_account_balance_report.py +++ b/account_financial_report/wizard/wizard_account_balance_report.py @@ -29,6 +29,7 @@ from osv import osv,fields import pooler import time +from tools.translate import _ class wizard_account_balance_gene(osv.osv_memory): _name = "wizard.report.account.balance.gene" @@ -141,7 +142,7 @@ class wizard_account_balance_gene(osv.osv_memory): minmax = cr.dictfetchall() if minmax: if (data['form']['date_to'] < minmax[0]['inicio']) or (data['form']['date_from'] > minmax[0]['fin']): - raise osv.except_osv(_('Error !'),('La intersepcion entre el periodo y fecha es vacio')) + raise osv.except_osv(_('Error !'),_('La intersepcion entre el periodo y fecha es vacio')) return {'type': 'ir.actions.report.xml', 'report_name': 'account.account.balance.gene', 'datas': data}