diff --git a/netforce_clinic/controllers/__pycache__/__init__.cpython-32.pyc b/netforce_clinic/controllers/__pycache__/__init__.cpython-32.pyc deleted file mode 100644 index ccf8cbc..0000000 Binary files a/netforce_clinic/controllers/__pycache__/__init__.cpython-32.pyc and /dev/null differ diff --git a/netforce_clinic/layouts/clinic_menu.xml b/netforce_clinic/layouts/clinic_menu.xml index 37b1db3..41377c6 100644 --- a/netforce_clinic/layouts/clinic_menu.xml +++ b/netforce_clinic/layouts/clinic_menu.xml @@ -1,8 +1,8 @@ - + diff --git a/netforce_clinic/models/clinic_hd_case.py b/netforce_clinic/models/clinic_hd_case.py index 86b2821..fedbe5b 100644 --- a/netforce_clinic/models/clinic_hd_case.py +++ b/netforce_clinic/models/clinic_hd_case.py @@ -4,7 +4,7 @@ import time from netforce.access import get_active_user,set_active_user from netforce.access import get_active_company -class Hdcase(Model): +class HDcase(Model): _name="clinic.hd.case" _string="HD Case Treatment" _audit_log=True @@ -80,7 +80,6 @@ class Hdcase(Model): obj=self.browse(ids)[0] obj.write({"state":"canceled"}) - def confirmed(self,ids,context={}): obj=self.browse(ids)[0] obj.write({"state":"confirmed"}) @@ -203,4 +202,4 @@ class Hdcase(Model): } return vals -Hdcase.register() +HDcase.register() diff --git a/netforce_clinic/models/clinic_patient.py b/netforce_clinic/models/clinic_patient.py index cff713e..8170226 100644 --- a/netforce_clinic/models/clinic_patient.py +++ b/netforce_clinic/models/clinic_patient.py @@ -144,6 +144,12 @@ class Patient(Model): } _order="date desc,number desc" + def name_get(self,ids,context={}): + vals=[] + for obj in self.browse(ids): + name='%s %s'%(obj.first_name or "", obj.last_name or "") + vals.append((obj.id,name)) + return vals def void(self,ids,context={}): obj=self.browse(ids)[0]