[FIX] account format error message correctly
Cherry-Pick of a04c1a2ac5244fe2fd3098fc22c59d336e352981
This commit is contained in:
parent
e6b91eb55a
commit
1644b92fd8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue