[FIX] account : Changing date on register in draft state

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

bzr revid: bde@tinyerp.com-20110913094942-930lf6c9641lv38p
This commit is contained in:
Bharat (OpenERP)
2011-09-13 15:19:42 +05:30
parent 30cc28efbb
commit 804755f9a8
+1 -1
View File
@@ -340,7 +340,7 @@ class account_cash_statement(osv.osv):
})
vals.update({
'date': time.strftime("%Y-%m-%d %H:%M:%S"),
'date': statement.date,
'state': 'open',
})
self.write(cr, uid, [statement.id], vals, context=context)