[FIX] account: centralization move creation speeded
authorQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 22 Sep 2011 12:00:02 +0000 (14:00 +0200)
committerQuentin (OpenERP) <qdp-launchpad@openerp.com>
Thu, 22 Sep 2011 12:00:02 +0000 (14:00 +0200)
bzr revid: qdp-launchpad@openerp.com-20110922120002-9p6vsyff545zp217

addons/account/account.py

index 6359906..7bbc286 100644 (file)
@@ -1101,7 +1101,8 @@ class account_move(osv.osv):
                 'date': move.period_id.date_stop,
                 'debit': 0.0,
                 'credit': 0.0,
-            }, context)
+                'state': 'valid',
+            }, context, check=False)
 
         # find the first line of this move with the other mode
         # so that we can exclude it from our calculation