From ae3b45d25c0cf11a97a541b501db39e597acca72 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Thu, 22 Sep 2011 15:46:42 +0200 Subject: [PATCH] [FIX] account_voucher: fixed typo in error raised when one of the accounts for currency rate difference is not set on the company bzr revid: qdp-launchpad@openerp.com-20110922134642-sgkm3e9fmgcr95r3 --- addons/account_voucher/account_voucher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account_voucher/account_voucher.py b/addons/account_voucher/account_voucher.py index a40708388b2..bdb498c8554 100644 --- a/addons/account_voucher/account_voucher.py +++ b/addons/account_voucher/account_voucher.py @@ -807,11 +807,11 @@ class account_voucher(osv.osv): if voucher.currency_rate_difference > 0: account_id = voucher.company_id.property_expense_currency_exchange if not account_id: - raise osv.except_osv(_('Warning'),_("Unable to create accounting entry for currency rate difference. You have to configure the field 'Income Currency Rate' on the company! ")) + raise osv.except_osv(_('Warning'),_("Unable to create accounting entry for currency rate difference. You have to configure the field 'Expense Currency Rate' on the company! ")) else: account_id = voucher.company_id.property_income_currency_exchange if not account_id: - raise osv.except_osv(_('Warning'),_("Unable to create accounting entry for currency rate difference. You have to configure the field 'Expense Currency Rate' on the company! ")) + raise osv.except_osv(_('Warning'),_("Unable to create accounting entry for currency rate difference. You have to configure the field 'Income Currency Rate' on the company! ")) currency_diff_line = { 'name': _('Currency Difference'),