diff --git a/addons/account/account_bank_statement.py b/addons/account/account_bank_statement.py index d0d8a8e9458..261807fd036 100644 --- a/addons/account/account_bank_statement.py +++ b/addons/account/account_bank_statement.py @@ -335,6 +335,7 @@ class account_bank_statement(osv.osv): if st.journal_id.entry_posted: account_move_obj.write(cr, uid, [move_id], {'state':'posted'}) + self.log(cr, uid, st.id, 'Statement %s is confirmed and entries are created.' % st.name) done.append(st.id) self.write(cr, uid, done, {'state':'confirm'}, context=context) return True diff --git a/addons/account/wizard/account_fiscalyear_close_state.py b/addons/account/wizard/account_fiscalyear_close_state.py index 403abbcbe12..4d0479f8014 100644 --- a/addons/account/wizard/account_fiscalyear_close_state.py +++ b/addons/account/wizard/account_fiscalyear_close_state.py @@ -58,6 +58,11 @@ cancelled, please check the box !')) 'WHERE fiscalyear_id = %s', ('done', fy_id)) cr.execute('UPDATE account_fiscalyear ' \ 'SET state = %s WHERE id = %s', ('done', fy_id)) + + # Log message for Fiscalyear + fy_pool = self.pool.get('account.fiscalyear') + fy_code = fy_pool.browse(cr, uid, fy_id, context=context).code + fy_pool.log(cr, uid, fy_id, "Fiscal year '%s' is closed, no more modification allowed." % (fy_code)) return {} account_fiscalyear_close_state() diff --git a/addons/account/wizard/account_period_close.py b/addons/account/wizard/account_period_close.py index f0f050e953c..56a4f2c5e35 100644 --- a/addons/account/wizard/account_period_close.py +++ b/addons/account/wizard/account_period_close.py @@ -46,6 +46,11 @@ class account_period_close(osv.osv_memory): for id in context['active_ids']: cr.execute('update account_journal_period set state=%s where period_id=%s', (mode, id)) cr.execute('update account_period set state=%s where id=%s', (mode, id)) + + # Log message for Period + period_pool = self.pool.get('account.period') + for period_id, name in period_pool.name_get(cr, uid, [id]): + period_pool.log(cr, uid, period_id, "Period '%s' is closed, no more modification allowed for this period." % (name)) return {} account_period_close()