Skip to content

Commit

Permalink
[FIX] Fix error in error message in string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tfr-odoo committed Oct 17, 2016
1 parent b431e6c commit a04c1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/account/account.py
Expand Up @@ -1580,7 +1580,7 @@ def validate(self, cr, uid, ids, context=None):

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 abs(amount) < 10 ** -4:
# If the move is balanced
Expand Down

0 comments on commit a04c1a2

Please sign in to comment.