[FIX] hr_recruitment: fix document uploading from applicant
Description of the issue/feature this PR addresses: In the kanban view of all applicants within the recruitment module, an issue arises when applicants attempt to upload documents. Current behavior before PR: upload button is hidden while uncheck the settings from Documents for Recruitment. Desired behavior after PR is merged: upload button is visible while uncheck the settings from Documents for Recruitment. Fix: The PR addresses the problem by modifying tree view of ir.attachment and default_res_model in the context. This adjustment is crucial as the current setting results in an incorrect model name, preventing the display of uploaded documents in this model. task-3579833 closes odoo/odoo#155958 X-original-commit: 0bd4a6ed4732156ab37bc555ea5228ca752dfced Related: odoo/enterprise#57840 Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
committed by
Prakash Prajapati
parent
4acf3c6c79
commit
c2d9c55ee8
@@ -500,7 +500,7 @@ class Applicant(models.Model):
|
||||
'res_model': 'ir.attachment',
|
||||
'name': _('Documents'),
|
||||
'context': {
|
||||
'default_res_model': 'hr.job',
|
||||
'default_res_model': 'hr.applicant',
|
||||
'default_res_id': self.ids[0],
|
||||
'show_partner_name': 1,
|
||||
},
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<field name="model">ir.attachment</field>
|
||||
<field name="mode">primary</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree create="0">
|
||||
<tree>
|
||||
<field name="name" column_invisible="True"/>
|
||||
<field name="res_id" column_invisible="True"/>
|
||||
<field name="res_model" column_invisible="True"/>
|
||||
|
||||
Reference in New Issue
Block a user