[IMP] hr_recruitment: applicant kanban customization
- stage model: add field holding the eventual star (priority) management + updated applicant kanban view
This commit is contained in:
@@ -53,6 +53,9 @@ class hr_recruitment_stage(osv.osv):
|
||||
'department_id':fields.many2one('hr.department', 'Specific to a Department', help="Stages of the recruitment process may be different per department. If this stage is common to all departments, keep this field empty."),
|
||||
'requirements': fields.text('Requirements'),
|
||||
'template_id': fields.many2one('email.template', 'Use template', help="If set, a message is posted on the applicant using the template when the applicant is set to the stage."),
|
||||
'legend_priority': fields.text(
|
||||
'Priority Management Explanation', translate=True,
|
||||
help='Explanation text to help users using the star and priority mechanism on applicants that are in this stage.'),
|
||||
'fold': fields.boolean('Folded in Kanban View',
|
||||
help='This stage is folded in the kanban view when'
|
||||
'there are no records in that stage to display.'),
|
||||
|
||||
@@ -241,7 +241,7 @@
|
||||
<field name="model">hr.applicant</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban default_group_by="stage_id">
|
||||
<field name="stage_id"/>
|
||||
<field name="stage_id" options='{"group_by_tooltip": {"description": "Description", "legend_priority": "Use of stars"}}'/>
|
||||
<field name="color"/>
|
||||
<field name="priority"/>
|
||||
<field name="survey"/>
|
||||
@@ -551,11 +551,12 @@
|
||||
<group>
|
||||
<field name="name"/>
|
||||
<field name="department_id"/>
|
||||
<field name="sequence"/>
|
||||
<field name="template_id" domain= "[('model_id.model', '=', 'hr.applicant')]"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="sequence"/>
|
||||
<field name="fold"/>
|
||||
<field name="template_id" domain= "[('model_id.model', '=', 'hr.applicant')]"/>
|
||||
<field name="legend_priority"/>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="Requirements"/>
|
||||
|
||||
Reference in New Issue
Block a user