[FIX] Correct the validate function for balanced move into account.py (after Fabien Warning)

lp bug: https://launchpad.net/bugs/452854 fixed

bzr revid: joel.grandguillaume@camptocamp.com-20091104065226-sax4u9d6ss4oif62
This commit is contained in:
Joel Grand-Guillaume
2009-11-04 07:52:26 +01:00
parent 37afc642ba
commit ba392d143b
+1 -1
View File
@@ -988,7 +988,7 @@ class account_move(osv.osv):
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 or line.currency_id):
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) < config['price_accuracy']:
if abs(amount) < 10**-config['price_accuracy']:
if not len(line_draft_ids):
continue
self.pool.get('account.move.line').write(cr, uid, line_draft_ids, {