From 1644b92fd8a7a38841333144064772fa50ef3e96 Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Mon, 17 Oct 2016 11:56:12 +0200 Subject: [PATCH] [FIX] account format error message correctly Cherry-Pick of a04c1a2ac5244fe2fd3098fc22c59d336e352981 --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index c08be3323b5..6f49b3cd464 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -1564,7 +1564,7 @@ class account_move(osv.osv): if line.account_id.currency_id and line.currency_id: if line.account_id.currency_id.id != line.currency_id.id and (line.account_id.currency_id.id != line.account_id.company_id.currency_id.id): - raise osv.except_osv(_('Error!'), _("""Cannot create move with currency different from ..""") % (line.account_id.code, line.account_id.name)) + raise osv.except_osv(_('Error'), _("""Couldn't create move with currency different from the secondary currency of the account "%s - %s". Clear the secondary currency field of the account definition if you want to accept all currencies.""") % (line.account_id.code, line.account_id.name)) if round(abs(amount), prec) < 10 ** (-max(5, prec)): # If the move is balanced