xxxx
parent
ee59ff0f47
commit
95ffcde823
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue