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_doctor_form.xml b/netforce_clinic/layouts/clinic_doctor_form.xml index fedde8b..3a026ba 100644 --- a/netforce_clinic/layouts/clinic_doctor_form.xml +++ b/netforce_clinic/layouts/clinic_doctor_form.xml @@ -14,6 +14,7 @@ + diff --git a/netforce_clinic/models/clinic_hd_case.py b/netforce_clinic/models/clinic_hd_case.py index 86b2821..0b45049 100644 --- a/netforce_clinic/models/clinic_hd_case.py +++ b/netforce_clinic/models/clinic_hd_case.py @@ -193,9 +193,9 @@ class Hdcase(Model): for obj in self.browse(ids): total=0 amt=0 - fee=obj.fee + fee=obj.fee or 0 for line in obj.lines_detail: - total+=line.total + total+=line.total or 0 amt=total+fee vals[obj.id]={ "total": total,