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