diff --git a/netforce_clinic/layouts/clinic_hd_case_form.xml b/netforce_clinic/layouts/clinic_hd_case_form.xml
index 80be1ac..7be8c49 100644
--- a/netforce_clinic/layouts/clinic_hd_case_form.xml
+++ b/netforce_clinic/layouts/clinic_hd_case_form.xml
@@ -43,16 +43,24 @@
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
+
+
+
diff --git a/netforce_clinic/models/clinic_hd_case.py b/netforce_clinic/models/clinic_hd_case.py
index fedbe5b..2ac0abe 100644
--- a/netforce_clinic/models/clinic_hd_case.py
+++ b/netforce_clinic/models/clinic_hd_case.py
@@ -34,6 +34,9 @@ class HDcase(Model):
"amount": fields.Float("Amount",function="get_total",readonly=True,function_multi=True),
"total": fields.Float("Total",function="get_total",readonly=True,function_multi=True),
"reconcile_id": fields.Many2One("account.reconcile","Reconcile Id",readonly=True),
+ "invoices": fields.One2Many("account.invoice","related_id","Invoices"),
+ "pickings": fields.One2Many("stock.picking","related_id","Pickings"),
+ "payments": fields.One2Many("account.payment","related_id","Payments"),
}
def _get_number(self,context={}):
diff --git a/netforce_clinic/models/clinic_patient.py b/netforce_clinic/models/clinic_patient.py
index 8170226..5371f3b 100644
--- a/netforce_clinic/models/clinic_patient.py
+++ b/netforce_clinic/models/clinic_patient.py
@@ -155,5 +155,4 @@ class Patient(Model):
obj=self.browse(ids)[0]
obj.write({"state":"voided"})
-
Patient.register()