[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:
qsm-odoo
2015-09-22 15:36:18 +02:00
parent 3b87ef6dda
commit 8b05d378dc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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>