From 1864724d6cd498cbe3fe2a2dba0eae6dac017c54 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Mon, 26 Apr 2010 14:49:18 +0200 Subject: [PATCH] [FIX] account: proper correction for typo in backport of bugfix for price accuracy bzr revid: odo@openerp.com-20100426124918-6aoa465pmcfkr91a --- 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 b7dcb6a3b8d..74531102073 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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, {