[FIX] account: proper correction for typo in backport of bugfix for price accuracy

bzr revid: odo@openerp.com-20100426124918-6aoa465pmcfkr91a
This commit is contained in:
Olivier Dony 2010-04-26 14:49:18 +02:00
parent 78cade20a3
commit 1864724d6c
1 changed files with 1 additions and 1 deletions

View File

@ -1062,7 +1062,7 @@ class account_move(osv.osv):
# Example:
# difference == 0.01 is OK iff price_accuracy <= 1!
# difference == 0.0001 is OK iff price_accuracy <= 3!
if abs(amount) < 10 ** -(int(config['price_accuracy'])):
if abs(amount) < 10 ** -(int(config['price_accuracy'])+1):
if not len(line_draft_ids):
continue
self.pool.get('account.move.line').write(cr, uid, line_draft_ids, {