~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to account_period_closing_level/account_journal_period.py

  • Committer: Matthieu Dietrich
  • Date: 2012-07-10 14:12:40 UTC
  • mfrom: (913 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 935.
  • Revision ID: mdietrich@chloups211-20120710141240-celi3o016fqz7mj1
UF-881: [MERGE] merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
            period = self.pool.get('account.period').browse(cr, uid, period_id, context=context)
34
34
            # If the period is not open, the move line/account journal period are not created.
35
35
            if period.state == 'created':
36
 
                raise osv.except_osv(_('Error !'), _('Period is not open!'))
 
36
                raise osv.except_osv(_('Error !'), _('Period \'%s\' is not open!') % (period.name,))
37
37
            elif period.state != 'done':
38
38
                vals['state'] = 'draft'
39
39
            else: