
from openerp import models, fields

class Partner(models.Model):
    _inherit = 'res.partner'

    instructor = fields.Boolean(help="This partner give train our course")




from openerp import models, fields

class Partner(models.Model):
    _inherit = 'res.partner'

    instructor = fields.Boolean(default=False,help="This partner give train our course")
    sessions = fields.Many2many('session', string="Session as instructor", readonly=True)



Add partner view injerit and model inherit
[REF] openacademy: Add partner view injerit and model inherit

  
  from openerp import models, fields
  
  class Partner(models.Model):
      _inherit = 'res.partner'
  
-     instructor = fields.Boolean(help="This partner give train our course")
+     instructor = fields.Boolean(default=False,help="This partner give train our course")
+     sessions = fields.Many2many('session', string="Session as instructor", readonly=True)
  
  
  
Add partner view injerit and model inherit
## Code Before:

from openerp import models, fields

class Partner(models.Model):
    _inherit = 'res.partner'

    instructor = fields.Boolean(help="This partner give train our course")



## Instruction:
Add partner view injerit and model inherit
## Code After:

from openerp import models, fields

class Partner(models.Model):
    _inherit = 'res.partner'

    instructor = fields.Boolean(default=False,help="This partner give train our course")
    sessions = fields.Many2many('session', string="Session as instructor", readonly=True)


