[IMP] account: log for bank statement
authorTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Tue, 8 May 2012 11:47:00 +0000 (17:17 +0530)
committerTurkesh Patel (Open ERP) <tpa@tinyerp.com>
Tue, 8 May 2012 11:47:00 +0000 (17:17 +0530)
bzr revid: tpa@tinyerp.com-20120508114700-7p20gun98zfo1s9v

addons/account/account_bank_statement.py

index a320f6d..da3ca65 100644 (file)
@@ -365,7 +365,7 @@ class account_bank_statement(osv.osv):
                     'name': st_number,
                     'balance_end_real': st.balance_end
             }, context=context)
-            self.log(cr, uid, st.id, _('Statement %s is confirmed, journal items are created.') % (st_number,))
+            self.message_append_note(cr, uid, ids, body=_('Statement %s is confirmed, journal items are created.') % (st_number,), context=context)
         return self.write(cr, uid, ids, {'state':'confirm'}, context=context)
 
     def button_cancel(self, cr, uid, ids, context=None):