652
652
'name': fields.char('Journal-Period Name', size=64, required=True),
653
653
'journal_id': fields.many2one('account.journal', 'Journal', required=True, ondelete="cascade"),
654
654
'period_id': fields.many2one('account.period', 'Period', required=True, ondelete="cascade"),
655
'icon': fields.function(_icon_get, method=True, string='Icon', type='string'),
655
'icon': fields.function(_icon_get, method=True, string='Icon', type='char', size=32),
656
656
'active': fields.boolean('Active', required=True),
657
657
'state': fields.selection([('draft','Draft'), ('printed','Printed'), ('done','Done')], 'Status', required=True, readonly=True),
658
658
'fiscalyear_id': fields.related('period_id', 'fiscalyear_id', string='Fiscal Year', type='many2one', relation='account.fiscalyear'),