key
parent
e2c8e36c56
commit
304d54ccc6
|
@ -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),
|
||||
|
|
|
@ -14,6 +14,7 @@ class Patient(Model):
|
|||
_string="Patient"
|
||||
_audit_log=True
|
||||
_multi_company=True
|
||||
_key=["name"]
|
||||
|
||||
def _get_age(self,ids,context):
|
||||
res={}
|
||||
|
|
|
@ -8,6 +8,7 @@ class Staff(Model):
|
|||
_string="Staff"
|
||||
_audit_log=True
|
||||
_multi_company=True
|
||||
_key=["name"]
|
||||
|
||||
def _get_age(self,ids,context={}):
|
||||
res={}
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue