key
parent
e2c8e36c56
commit
304d54ccc6
|
@ -4,6 +4,7 @@ from netforce.access import get_active_company
|
||||||
class Cycle(Model):
|
class Cycle(Model):
|
||||||
_name="clinic.cycle"
|
_name="clinic.cycle"
|
||||||
_string="Cycle"
|
_string="Cycle"
|
||||||
|
_key=["name"]
|
||||||
|
|
||||||
_fields={
|
_fields={
|
||||||
"name": fields.Char("Name",required=True,search=True),
|
"name": fields.Char("Name",required=True,search=True),
|
||||||
|
|
|
@ -14,6 +14,7 @@ class Patient(Model):
|
||||||
_string="Patient"
|
_string="Patient"
|
||||||
_audit_log=True
|
_audit_log=True
|
||||||
_multi_company=True
|
_multi_company=True
|
||||||
|
_key=["name"]
|
||||||
|
|
||||||
def _get_age(self,ids,context):
|
def _get_age(self,ids,context):
|
||||||
res={}
|
res={}
|
||||||
|
|
|
@ -8,6 +8,7 @@ class Staff(Model):
|
||||||
_string="Staff"
|
_string="Staff"
|
||||||
_audit_log=True
|
_audit_log=True
|
||||||
_multi_company=True
|
_multi_company=True
|
||||||
|
_key=["name"]
|
||||||
|
|
||||||
def _get_age(self,ids,context={}):
|
def _get_age(self,ids,context={}):
|
||||||
res={}
|
res={}
|
||||||
|
|
|
@ -4,6 +4,7 @@ from netforce.access import get_active_company
|
||||||
class StaffCategory(Model):
|
class StaffCategory(Model):
|
||||||
_name="clinic.staff.categ"
|
_name="clinic.staff.categ"
|
||||||
_string="Staff Category"
|
_string="Staff Category"
|
||||||
|
_key=["name"]
|
||||||
|
|
||||||
_fields={
|
_fields={
|
||||||
"name": fields.Char("Name",required=True,search=True),
|
"name": fields.Char("Name",required=True,search=True),
|
||||||
|
|
|
@ -4,6 +4,7 @@ from netforce.access import get_active_company
|
||||||
class StaffLevel(Model):
|
class StaffLevel(Model):
|
||||||
_name="clinic.staff.level"
|
_name="clinic.staff.level"
|
||||||
_string="Staff Level"
|
_string="Staff Level"
|
||||||
|
_key=["name"]
|
||||||
|
|
||||||
_fields={
|
_fields={
|
||||||
"name": fields.Char("Name",required=True,search=True),
|
"name": fields.Char("Name",required=True,search=True),
|
||||||
|
|
Loading…
Reference in New Issue