[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: 957e7eb77ed18e4a1c14ef4ef55bd54503c56f44 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user