
from openerp import fields, models


class MedicalMedicament(models.Model):
    _inherit = 'medical.medicament'
    ndc = fields.Char(
        string='NDC',
        help='National Drug Code for medication'
    )
    control_code = fields.Selection([
        ('c1', 'C1'),
        ('c2', 'C2'),
        ('c3', 'C3'),
        ('c4', 'C4'),
        ('c5', 'C5'),
    ],
        help='Federal drug scheduling code',
    )


from openerp import fields, models


class MedicalMedicament(models.Model):
    _inherit = 'medical.medicament'
    ndc = fields.Char(
        string='NDC',
        help='National Drug Code for medication'
    )
    gpi = fields.Integer(
        string='GPI',
        help='Generic Product Identifier',
    )
    gcn = fields.Integer(
        string='GCN',
        help='Generic Code Number',
    )
    control_code = fields.Selection([
        ('c1', 'C1'),
        ('c2', 'C2'),
        ('c3', 'C3'),
        ('c4', 'C4'),
        ('c5', 'C5'),
    ],
        help='Federal drug scheduling code',
    )

Add gpi and gcn to medicament in medical_medication_us
Add gpi and gcn to medicament in medical_medication_us

  
  from openerp import fields, models
  
  
  class MedicalMedicament(models.Model):
      _inherit = 'medical.medicament'
      ndc = fields.Char(
          string='NDC',
          help='National Drug Code for medication'
+     )
+     gpi = fields.Integer(
+         string='GPI',
+         help='Generic Product Identifier',
+     )
+     gcn = fields.Integer(
+         string='GCN',
+         help='Generic Code Number',
      )
      control_code = fields.Selection([
          ('c1', 'C1'),
          ('c2', 'C2'),
          ('c3', 'C3'),
          ('c4', 'C4'),
          ('c5', 'C5'),
      ],
          help='Federal drug scheduling code',
      )
  
Add gpi and gcn to medicament in medical_medication_us
## Code Before:

from openerp import fields, models


class MedicalMedicament(models.Model):
    _inherit = 'medical.medicament'
    ndc = fields.Char(
        string='NDC',
        help='National Drug Code for medication'
    )
    control_code = fields.Selection([
        ('c1', 'C1'),
        ('c2', 'C2'),
        ('c3', 'C3'),
        ('c4', 'C4'),
        ('c5', 'C5'),
    ],
        help='Federal drug scheduling code',
    )

## Instruction:
Add gpi and gcn to medicament in medical_medication_us
## Code After:

from openerp import fields, models


class MedicalMedicament(models.Model):
    _inherit = 'medical.medicament'
    ndc = fields.Char(
        string='NDC',
        help='National Drug Code for medication'
    )
    gpi = fields.Integer(
        string='GPI',
        help='Generic Product Identifier',
    )
    gcn = fields.Integer(
        string='GCN',
        help='Generic Code Number',
    )
    control_code = fields.Selection([
        ('c1', 'C1'),
        ('c2', 'C2'),
        ('c3', 'C3'),
        ('c4', 'C4'),
        ('c5', 'C5'),
    ],
        help='Federal drug scheduling code',
    )
