[IMP] crm: meeting statbutton, change filter label
When clicking on the stat_button "Meetings" in a partner formview, the calendar opened with a filter "Attendees : <the_partner_id>". Now the same result occurs but with a more explicit filter: the partner name instead of its id.
This commit is contained in:
@@ -73,7 +73,7 @@ class res_partner(osv.osv):
|
||||
partner_ids.append(self.pool.get('res.users').browse(cr, uid, uid).partner_id.id)
|
||||
res = self.pool.get('ir.actions.act_window').for_xml_id(cr, uid, 'calendar', 'action_calendar_event', context)
|
||||
res['context'] = {
|
||||
'search_default_partner_ids': list(ids),
|
||||
'search_default_partner_ids': context['partner_name'],
|
||||
'default_partner_ids': partner_ids,
|
||||
}
|
||||
return res
|
||||
|
||||
@@ -96,7 +96,7 @@
|
||||
<button class="oe_stat_button" type="object"
|
||||
name="schedule_meeting"
|
||||
icon="fa-calendar"
|
||||
context="{'partner_id': active_id}">
|
||||
context="{'partner_id': active_id, 'partner_name': name}">
|
||||
<field string="Meetings" name="meeting_count" widget="statinfo"/>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user