Skip to content
Snippets Groups Projects
Commit 31a18fa6 authored by Nicolas Lempereur's avatar Nicolas Lempereur
Browse files

[FIX] crm,hr_recruitment: highlight and show others


When clicking on stat button "Meetings" on a partner, just highlight the
partner meetings as is done for similar stat button instead of having
a domain that hides other event (so when creating meeting, we can take
into account other existing meetings).

A similar change with same reasoning has been done for "Meetings" stat
button of hr.applicant records.

opw-2131494
closes #40812

closes odoo/odoo#40900

X-original-commit: 957e7eb7
Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
parent 8eb4c0d2
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,6 @@ class Partner(models.Model):
partner_ids.append(self.env.user.partner_id.id)
action = self.env.ref('calendar.action_calendar_event').read()[0]
action['context'] = {
'search_default_partner_ids': self._context['partner_name'],
'default_partner_ids': partner_ids,
}
return action
......@@ -309,7 +309,6 @@ class Applicant(models.Model):
category = self.env.ref('hr_recruitment.categ_meet_interview')
res = self.env['ir.actions.act_window'].for_xml_id('calendar', 'action_calendar_event')
res['context'] = {
'search_default_partner_ids': self.partner_id.name,
'default_partner_ids': partners.ids,
'default_user_id': self.env.uid,
'default_name': self.name,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment