Here i want to call Many2one and One2many. somebody help me to solve this.
class AnalyteConTest(models.Model):
_name="analyte.con.test.info"
_description="Analyte Concentration"
analyte_con_test_id = fields.Many2one('client.request.pharmaceutical.info','Analyte',required=True,)
test_analyte = fields.Char('Analyte')
test_concentration = fields.Char('Concentration')
--------------------------------------------------------------------------------------------------------------------------------
from itertools import groupbyfrom odoo import api, fields, models, _
class ClientRequestPharmaceutical(models.Model):
_name="client.request.pharmaceutical.info"
_description="Client Request Pharmaceutical Info"
analyte_con_test_id = fields.One2many('analyte.con.test.info','analyte_con_test_id','Analyte')
Do you want to set the value or read the value?
yes, I want to set the value in table using many2one and one2many in odoo 10.