~unifield-team/unifield-wm/uf1.0-6

« back to all changes in this revision

Viewing changes to register_accounting/account_bank_statement.py

  • Committer: jf
  • Date: 2015-09-11 12:22:54 UTC
  • mfrom: (2621.1.1 unifield-wm)
  • Revision ID: jfb@tempo-consulting.fr-20150911122254-erj7i6n0lxe8dlem
US-576 [FIX] Register name: use the journal name when the register is opened
lp:~jfb-tempo-consulting/unifield-wm/us-576

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
                raise osv.except_osv(_('Error'),
243
243
                                     _('The associated period is closed'))
244
244
            else:
245
 
                return self.write(cr, uid, ids, {'state': 'open'})
 
245
                return self.write(cr, uid, [register.id], {'state': 'open', 'name': register.journal_id.name})
246
246
 
247
247
    def check_status_condition(self, cr, uid, state, journal_type='bank'):
248
248
        """