old_contents: # -*- coding: utf-8 -*-
  # © 2016 LasLabs Inc.
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  
  from openerp import fields, models, api
  
  
  class MedicalManufacturer(models.Model):
      _name = 'medical.manufacturer'
      _description = 'Medical Manufacturer'
      _inherits = {'res.partner': 'partner_id', }
  
      partner_id = fields.Many2one(
          comodel_name='res.partner',
          required=True,
          ondelete='cascade',
          index=True,
      )
  
      @api.model
      @api.returns('self', lambda value: value.id)
      def create(self, vals):
          vals['is_manufacturer'] = True
          return super(MedicalManufacturer, self).create(vals)
  
new_contents: # -*- coding: utf-8 -*-
  # © 2016 LasLabs Inc.
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  
  from openerp import fields, models, api
  
  
  class MedicalManufacturer(models.Model):
      _name = 'medical.manufacturer'
      _description = 'Medical Manufacturer'
      _inherits = {'res.partner': 'partner_id', }
  
      partner_id = fields.Many2one(
          comodel_name='res.partner',
          required=True,
          ondelete='cascade',
          index=True,
      )
  
      @api.model
      @api.returns('self', lambda value: value.id)
      def create(self, vals):
          vals.update({
              'is_manufacturer': True,
              'customer': False,
          })
          return super(MedicalManufacturer, self).create(vals)
  
subject: Set customer to False on create in medical_manufacturer