

from openerp import models, fields, api, _
import openerp.addons.decimal_precision as dp
from openerp.exceptions import Warning


class ProductProduct(models.Model):
    _inherit = 'product.product'

    service_level_id = fields.Many2one(
        'delivery.service.level',
        string='Service Level')
    service_level_time_id = fields.Many2one(
        'delivery.service.level.time',
        string='Service Level Time')


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

    transsmart_code = fields.Char(
        size=128,
        string="Transsmart Code")
    transsmart_id = fields.Integer(
        "Transsmart ID")








from openerp import models, fields, api, _
import openerp.addons.decimal_precision as dp
from openerp.exceptions import Warning


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

    transsmart_code = fields.Char(
        size=128,
        string="Transsmart Code")
    transsmart_id = fields.Integer(
        "Transsmart ID")






Remove double product field definitions
[DEL] Remove double product field definitions

  
  
  from openerp import models, fields, api, _
  import openerp.addons.decimal_precision as dp
  from openerp.exceptions import Warning
- 
- 
- class ProductProduct(models.Model):
-     _inherit = 'product.product'
- 
-     service_level_id = fields.Many2one(
-         'delivery.service.level',
-         string='Service Level')
-     service_level_time_id = fields.Many2one(
-         'delivery.service.level.time',
-         string='Service Level Time')
  
  
  class ResPartner(models.Model):
      _inherit = 'res.partner'
  
      transsmart_code = fields.Char(
          size=128,
          string="Transsmart Code")
      transsmart_id = fields.Integer(
          "Transsmart ID")
  
  
  
  
  
  
Remove double product field definitions
## Code Before:


from openerp import models, fields, api, _
import openerp.addons.decimal_precision as dp
from openerp.exceptions import Warning


class ProductProduct(models.Model):
    _inherit = 'product.product'

    service_level_id = fields.Many2one(
        'delivery.service.level',
        string='Service Level')
    service_level_time_id = fields.Many2one(
        'delivery.service.level.time',
        string='Service Level Time')


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

    transsmart_code = fields.Char(
        size=128,
        string="Transsmart Code")
    transsmart_id = fields.Integer(
        "Transsmart ID")






## Instruction:
Remove double product field definitions
## Code After:


from openerp import models, fields, api, _
import openerp.addons.decimal_precision as dp
from openerp.exceptions import Warning


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

    transsmart_code = fields.Char(
        size=128,
        string="Transsmart Code")
    transsmart_id = fields.Integer(
        "Transsmart ID")





