
from openerp import fields, models
from base_olims_model import BaseOLiMSModel

schema = (
          fields.Many2one(string='Container', comodel_name ='olims.container'),
          fields.Many2one(string='Preservation', comodel_name ='olims.preservation'),
          fields.Char('Partition'),
          )

class PartitionARTemplate(models.Model, BaseOLiMSModel): 
    _name='olims.partition_ar_template'
    _rec_name = 'Partition'
    
PartitionARTemplate.initialze(schema)

from openerp import fields, models
from base_olims_model import BaseOLiMSModel

schema = (
          fields.Many2one(string='Container', comodel_name ='olims.container'),
          fields.Many2one(string='Preservation', comodel_name ='olims.preservation'),
          fields.Char('Partition'),
          )
ar_partition_schema = (fields.Char('state'),
                       fields.Many2one(string='analysis_request_id', comodel_name ='olims.analysis_request'),
#                        fields.Char('partition_id')
                       )
class PartitionARTemplate(models.Model, BaseOLiMSModel): 
    _name='olims.partition_ar_template'
    _rec_name = 'Partition'

class ARPartition(models.Model, BaseOLiMSModel):
    _inherit = 'olims.partition_ar_template'
    _name='olims.ar_partition'
PartitionARTemplate.initialze(schema)
ARPartition.initialze(ar_partition_schema)
Define a model for 'Analysis Request Sample Partition' inherit from partition_ar_template.