diff --git a/netforce_clinic/layouts/clinic_hd_case_form.xml b/netforce_clinic/layouts/clinic_hd_case_form.xml
index cec323e..c5b51b8 100644
--- a/netforce_clinic/layouts/clinic_hd_case_form.xml
+++ b/netforce_clinic/layouts/clinic_hd_case_form.xml
@@ -15,6 +15,7 @@
+
@@ -106,6 +107,9 @@
+
+
+
diff --git a/netforce_clinic/models/cycle_item.py b/netforce_clinic/models/cycle_item.py
index b0d77ce..069f03f 100644
--- a/netforce_clinic/models/cycle_item.py
+++ b/netforce_clinic/models/cycle_item.py
@@ -12,7 +12,11 @@ class CycleItem(Model):
def _get_all(self,ids,context={}):
res={}
for obj in self.browse(ids):
- name="%s-%s"%(obj.cycle_id.name,obj.date)
+ cycle=obj.cycle_id
+ cycle_name=''
+ if cycle:
+ cycle_name=cycle.name
+ name="%s-%s"%(cycle_name,obj.date)
total_case=len(obj.hd_cases)
total_a,total_b=0,0
total=0.0
diff --git a/netforce_clinic/models/hd_case.py b/netforce_clinic/models/hd_case.py
index 735db43..461db81 100644
--- a/netforce_clinic/models/hd_case.py
+++ b/netforce_clinic/models/hd_case.py
@@ -109,8 +109,9 @@ class HDCase(Model):
'fee_partner_id': fields.Many2One("partner","Contact Fee"),
'fee_paid': fields.Boolean("Fee Paid"),
'note': fields.Text("Note"),
+ 'complication': fields.Text("Complication"),
"cycle_id": fields.Many2One("clinic.cycle","Cycle"),
- 'cycle_item_id': fields.Many2One("clinic.cycle.item","Cycle Item"), # on_delete="cascade" -> rm visit from cycle item
+ 'cycle_item_id': fields.Many2One("clinic.cycle.item","Nurse Schedule"), # on_delete="cascade" -> will rm visit from cycle item
'pay_amount': fields.Float("Amount",function="get_pay_amount"),
'pay_date': fields.Date("Pay Date"),
'pay_account_id': fields.Many2One("account.account","Account"),