[FIX] mail_tracking: use recipient_address to search emails

This commits is using the field recipient_address in filter of search view
of mail.tracking.email in order to use the same field used in computed
method:

147eda96a5/mail_tracking/models/res_partner.py (L27)
This commit is contained in:
Fernanda Hernández 2021-11-24 19:51:16 +00:00 committed by Jasmin Solanki
parent 146323186a
commit 71fb071154
2 changed files with 5 additions and 5 deletions

View File

@ -105,9 +105,9 @@
filter_domain="[('sender', 'ilike', self)]" filter_domain="[('sender', 'ilike', self)]"
/> />
<field <field
name="recipient" name="recipient_address"
string="Recipient" string="Recipient Address"
filter_domain="[('recipient', 'ilike', self)]" filter_domain="[('recipient_address', '=', self)]"
/> />
<field name="name" string="Subject" /> <field name="name" string="Subject" />
<field name="time" string="Time" /> <field name="time" string="Time" />

View File

@ -12,8 +12,8 @@
<div name="button_box" position="inside"> <div name="button_box" position="inside">
<button <button
name="%(mail_tracking.action_view_mail_tracking_email)d" name="%(mail_tracking.action_view_mail_tracking_email)d"
context="{'search_default_recipient': email, context="{'search_default_recipient_address': email,
'default_recipient': email}" 'default_recipient_address': email}"
type="action" type="action"
class="oe_stat_button" class="oe_stat_button"
icon="fa-envelope-o" icon="fa-envelope-o"