a guest May 23rd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # -*- coding: utf-8 -*-
- from odoo import models, fields, api, _
- from odoo.exceptions import UserError,ValidationError
- import logging
- _logger = logging.getLogger(__name__)
- class AcademicDegree(models.Model):
- _name = 'academic.degree'
- _description = 'Academic Degree'
- # uncomment if using tracking modules
- _inherit = ['mail.thread', 'mail.activity.mixin']
- name = fields.Char(string="Nama", required=True, track_visibility="onchange", unique=True)
- description = fields.Html(string="Deskripsi")
- active = fields.Boolean(string="Aktif", default=True, track_visibility="onchange")
RAW Paste Data