diff --git a/netforce_clinic/models/labor_cost_entry.py b/netforce_clinic/models/labor_cost_entry.py index d41791f..084bcfc 100644 --- a/netforce_clinic/models/labor_cost_entry.py +++ b/netforce_clinic/models/labor_cost_entry.py @@ -49,7 +49,8 @@ class LaborCostEntry(Model): "lines": fields.One2Many("clinic.labor.cost.entry.line", "entry_id", "Lines"), "nurse_lines": fields.One2Many("clinic.labor.cost.entry.line", "entry_id", "Nurse Lines",domain=[['type','=','nurse']]), "doctor_lines": fields.One2Many("clinic.labor.cost.entry.line", "entry_id", "Doctor Lines",domain=[['type','=','doctor']]), - "state": fields.Selection([["part_time","Part Time"],["full_time","Full Time"]],"Working Status",search=True), + "work_state": fields.Selection([["part_time","Part Time"],["full_time","Full Time"]],"Working Status",search=True), + "state": fields.Selection([["draft","Draft"],["approved","Approved"]],"Status"), 'user_id': fields.Many2One("base.user","Approver",search=True), 'note': fields.Text("Note"), 'company_id': fields.Many2One("company","Company"), @@ -73,6 +74,7 @@ class LaborCostEntry(Model): 'date_to': _get_date_to, 'user_id': lambda *a: get_active_user(), 'company_id': lambda *a: get_active_company(), + 'state': 'draft', } _order="date_from desc,branch_id,department_id"