[FIX] hr_recruitment: add company_id to the context

Steps to reproduce:
-------------------
- go to Recruitment app and click on a job position;
- for an application without recruiter,
    click on the "Assign" button on the kanban box.

Issue:
------
A traceback occurs.

Cause:
------
To find available user_ids,
we use the `"[..., ('company_ids', 'in', company_id)]"` domain.
But `company_id` is not in the context.

Solution:
---------
Add `company_id` in the context by adding it to the view.

opw-3450558

closes odoo/odoo#131159

X-original-commit: 4fa18ec336b9f44648c1eaa272d6e38f536b628b
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
This commit is contained in:
Thomas Lefebvre (thle)
2023-08-09 03:07:53 +02:00
parent 070d257fb0
commit e351d9fe48
@@ -334,6 +334,7 @@
<t t-name="kanban-box">
<div t-attf-class="{{!selection_mode ? 'oe_kanban_color_' + kanban_getcolor(record.color.raw_value) : ''}} oe_kanban_card oe_kanban_global_click oe_applicant_kanban oe_semantic_html_override">
<field name="date_closed" invisible="1"/>
<field name="company_id" invisible="1"/>
<div class="ribbon ribbon-top-right" attrs="{'invisible': [('date_closed', '=', False)]}">
<span class="text-bg-success">Hired</span>
</div>