diff --git a/netforce_clinic/actions/clinic_cycle_item.xml b/netforce_clinic/actions/clinic_cycle_item.xml
index 405d100..d066491 100644
--- a/netforce_clinic/actions/clinic_cycle_item.xml
+++ b/netforce_clinic/actions/clinic_cycle_item.xml
@@ -3,7 +3,7 @@
multi_view
clinic.cycle.item
list,form
- [["All",[]],["Draft",[["state","=","draft"]]],["Validated",[["state","=","validated"]]]]
+ [["All",[]],["Draft",[["state","=","draft"]]],["Pending",[["state","=","pending"]]],["Validated",[["state","=","validated"]]]]
clinic_menu
25
diff --git a/netforce_clinic/layouts/clinic_cycle_item_form.xml b/netforce_clinic/layouts/clinic_cycle_item_form.xml
index 2ce57dd..7b44aae 100644
--- a/netforce_clinic/layouts/clinic_cycle_item_form.xml
+++ b/netforce_clinic/layouts/clinic_cycle_item_form.xml
@@ -5,7 +5,7 @@
-
+
@@ -26,17 +26,20 @@
-
-
-
-
+
+
Note: State Accept:
'Finish Treatment', 'Waiting Payment', 'Paid'.
+
+
+
+
+
diff --git a/netforce_clinic/layouts/clinic_cycle_item_list.xml b/netforce_clinic/layouts/clinic_cycle_item_list.xml
index 5f8ec6d..a48de9f 100644
--- a/netforce_clinic/layouts/clinic_cycle_item_list.xml
+++ b/netforce_clinic/layouts/clinic_cycle_item_list.xml
@@ -9,5 +9,6 @@
+
diff --git a/netforce_clinic/models/cycle_item.py b/netforce_clinic/models/cycle_item.py
index 7a1fe87..4feeebf 100644
--- a/netforce_clinic/models/cycle_item.py
+++ b/netforce_clinic/models/cycle_item.py
@@ -46,8 +46,9 @@ class CycleItem(Model):
'branch_id': fields.Many2One("clinic.branch", "Branch",search=True),
'department_id': fields.Many2One("clinic.department", "Department",search=True),
"comments": fields.One2Many("message","related_id","Comments"), "company_id": fields.Many2One("company","Company"),
- "state": fields.Selection([("draft","Draft"),("validated","Validated")],"Status",required=True),
+ "state": fields.Selection([("draft","Draft"),('pending','Pending'),("validated","Validated")],"Status",required=True),
'nurse_total': fields.Integer("Nurses",function="_get_all",function_multi=True),
+ 'note': fields.Text("Note"),
}
def _get_branch(self,context={}):
@@ -278,4 +279,10 @@ class CycleItem(Model):
},
}
+ def pending(self,ids,context={}):
+ for obj in self.browse(ids):
+ obj.write({
+ 'state': 'pending',
+ })
+
CycleItem.register()