SHARE
TWEET

Untitled

a guest May 23rd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: utf-8 -*-
  2. from odoo import models, fields, api, _
  3. from odoo.exceptions import UserError,ValidationError
  4.  
  5. import logging
  6. _logger = logging.getLogger(__name__)
  7.  
  8.  
  9. class AcademicDegree(models.Model):
  10.     _name = 'academic.degree'
  11.     _description = 'Academic Degree'
  12.  
  13.  
  14.     # uncomment if using tracking modules
  15.     _inherit = ['mail.thread', 'mail.activity.mixin']
  16.  
  17.     name = fields.Char(string="Nama", required=True, track_visibility="onchange", unique=True)
  18.     description = fields.Html(string="Deskripsi")
  19.     active = fields.Boolean(string="Aktif", default=True, track_visibility="onchange")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top