diff --git a/netforce_clinic/models/cycle.py b/netforce_clinic/models/cycle.py index 9b99272..b63923d 100644 --- a/netforce_clinic/models/cycle.py +++ b/netforce_clinic/models/cycle.py @@ -4,6 +4,7 @@ from netforce.access import get_active_company class Cycle(Model): _name="clinic.cycle" _string="Cycle" + _key=["name"] _fields={ "name": fields.Char("Name",required=True,search=True), diff --git a/netforce_clinic/models/patient.py b/netforce_clinic/models/patient.py index e0e90ee..de5d8f7 100644 --- a/netforce_clinic/models/patient.py +++ b/netforce_clinic/models/patient.py @@ -14,6 +14,7 @@ class Patient(Model): _string="Patient" _audit_log=True _multi_company=True + _key=["name"] def _get_age(self,ids,context): res={} diff --git a/netforce_clinic/models/staff.py b/netforce_clinic/models/staff.py index 9334667..8b41ac8 100644 --- a/netforce_clinic/models/staff.py +++ b/netforce_clinic/models/staff.py @@ -8,6 +8,7 @@ class Staff(Model): _string="Staff" _audit_log=True _multi_company=True + _key=["name"] def _get_age(self,ids,context={}): res={} diff --git a/netforce_clinic/models/staff_categ.py b/netforce_clinic/models/staff_categ.py index 827e3b6..814cd45 100644 --- a/netforce_clinic/models/staff_categ.py +++ b/netforce_clinic/models/staff_categ.py @@ -4,6 +4,7 @@ from netforce.access import get_active_company class StaffCategory(Model): _name="clinic.staff.categ" _string="Staff Category" + _key=["name"] _fields={ "name": fields.Char("Name",required=True,search=True), diff --git a/netforce_clinic/models/staff_level.py b/netforce_clinic/models/staff_level.py index fc646da..9e49ea5 100644 --- a/netforce_clinic/models/staff_level.py +++ b/netforce_clinic/models/staff_level.py @@ -4,6 +4,7 @@ from netforce.access import get_active_company class StaffLevel(Model): _name="clinic.staff.level" _string="Staff Level" + _key=["name"] _fields={ "name": fields.Char("Name",required=True,search=True),