hey everybody , can anyone help me with the field many2one ??? in my module i have a field with a drop down list where i want to show all the names of my patients already registered in my database ... Plzzzz help meee
my python file :
class medical(osv.osv): _name='medical' _description='dossier medical du patient'
_columns={
#info general
'name' : fields.many2one('patient.name', 'name'),
} medical()
my xml file :
<field name="name" domain="[('name','=','name')]"/>
Just as specification i want to get the field "name" from the class : patient
_name='patient'
_description='dossier administratif du patient'
_columns={
'name' : fields.char('numero d`adhesion', size=30, required=True),
} patient()