old_contents: # -*- coding: utf-8 -*-
  
  from openerp import api, models, fields, _
  
  '''
  This module create model of Course
  '''
  
  class Course(models.Model):
      '''
      This class create model of Course
      '''
      _name = 'openacademy.course' # Model odoo name
  
      name = fields.Char(string='Title', required=True) # Field reserved to identified name rec
      description = fields.Text(string='Description')
      responsible_id = fields.Many2one('res.users',
                                       ondelete='set null',
                                       string="Responsible", index=True)
      session_ids = fields.One2many('openacademy.session', 'course_id', string="Sessions")
      new_field = fields.Char('My New Field', help="My new help")
  
      _sql_constraints = [
          ('name_description_check',
           'CHECK(name != description)',
           _("The title of the course should not be the description")),
  
          ('name_unique',
           'UNIQUE(name)',
           _("The course title must be unique")),
      ]
  
      @api.multi
      def copy(self, default=None):
          default = dict(default or {})
  
          copied_count = self.search_count(
              [('name', '=like', _(u"Copy of {}%").format(self.name))])
          if not copied_count:
              new_name = _(u"Copy of {}").format(self.name)
          else:
              new_name = _(u"Copy of {} ({})").format(self.name, copied_count)
  
          default['name'] = new_name
          default['test_1'] = _('Test 1')
          default['test_2'] = _('Test 2')
          default['test_3'] = _('Test 3')
          default['test_4'] = _('Test 4')
          return super(Course, self).copy(default)
  
  
new_contents: # -*- coding: utf-8 -*-
  
  from openerp import api, models, fields, _
  
  '''
  This module create model of Course
  '''
  
  class Course(models.Model):
      '''
      This class create model of Course
      '''
      _name = 'openacademy.course' # Model odoo name
  
      name = fields.Char(string='Title', required=True) # Field reserved to identified name rec
      description = fields.Text(string='Description')
      responsible_id = fields.Many2one('res.users',
                                       ondelete='set null',
                                       string="Responsible", index=True)
      session_ids = fields.One2many('openacademy.session', 'course_id', string="Sessions")
      new_field = fields.Char('My New Field', help="My new help")
  
      _sql_constraints = [
          ('name_description_check',
           'CHECK(name != description)',
           _("The title of the course should not be the description")),
  
          ('name_unique',
           'UNIQUE(name)',
           _("The course title must be unique")),
      ]
  
      @api.multi
      def copy(self, default=None):
          default = dict(default or {})
  
          copied_count = self.search_count(
              [('name', '=like', _(u"Copy of {}%").format(self.name))])
          if not copied_count:
              new_name = _(u"Copy of {}").format(self.name)
          else:
              new_name = _(u"Copy of {} ({})").format(self.name, copied_count)
  
          default['name'] = new_name
          default['test_1'] = _('Test 1')
          default['test_2'] = _('Test 2')
          default['test_3'] = _('Test 3')
          default['test_4'] = _('Test 4')
          default['test_5'] = _('Test 5')
          return super(Course, self).copy(default)
  
  
subject: Update openacademy_course.py