diff --git a/addons/account/report/account_journal.py b/addons/account/report/account_journal.py index 9f050756a5e..9d62829ef93 100644 --- a/addons/account/report/account_journal.py +++ b/addons/account/report/account_journal.py @@ -114,8 +114,7 @@ class journal_print(report_sxw.rml_parse, common_report_header): journal_id = [journal_id] obj_mline = self.pool.get('account.move.line') self.cr.execute('update account_journal_period set state=%s where journal_id IN %s and period_id=%s and state=%s', ('printed', self.journal_ids, period_id, 'draft')) - self.cr.commit() - + move_state = ['draft','posted'] if self.target_move == 'posted': move_state = ['posted'] @@ -158,4 +157,4 @@ class journal_print(report_sxw.rml_parse, common_report_header): report_sxw.report_sxw('report.account.journal.period.print', 'account.journal.period', 'addons/account/report/account_journal.rml', parser=journal_print, header='internal') -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: