[IMP] Account: cash statement => Does not consider boolean on journal(posted) while...
authorMustufa Rangwala <mra@mra-laptop>
Mon, 30 Aug 2010 10:38:41 +0000 (16:08 +0530)
committerMustufa Rangwala <mra@mra-laptop>
Mon, 30 Aug 2010 10:38:41 +0000 (16:08 +0530)
bzr revid: mra@mra-laptop-20100830103841-toed4biilpkxtixd

addons/account/account_cash_statement.py

index 42837ad..c264ae6 100644 (file)
@@ -499,8 +499,7 @@ class account_cash_statement(osv.osv):
                     else:
                         account_move_line_obj.reconcile_partial(cr, uid, torec, 'statement', context)
 
-                if st.journal_id.entry_posted:
-                    account_move_obj.write(cr, uid, [move_id], {'state':'posted'})
+                account_move_obj.write(cr, uid, [move_id], {'state':'posted'})
             done.append(st.id)
 
         vals = {