[FIX] hr_recruitment: no create on ir_attachment action
The "Resumes and Letters" action simply displays ir_attachments linked to hr_applicant objects; but there is no default_res_model in the context so no ir_attachment you create is actually displayed in the kanban view. Since the goal of this action is simply to display attachments linked to applicants, it makes more sense to disable the create button and to force people to upload resumes and cover letters through the applicant record.
This commit is contained in:
@@ -559,6 +559,7 @@
|
||||
<field name="view_mode">kanban,tree,form</field>
|
||||
<field name="view_id" ref="mail.view_document_file_kanban"/>
|
||||
<field name="domain">[('res_model','=','hr.applicant')]</field>
|
||||
<field name="context">{'create': False}</field>
|
||||
<field name="help" type="html">
|
||||
<p>
|
||||
Search through resumes and motivation letters.
|
||||
|
||||
Reference in New Issue
Block a user