[FIX] mail_tracking: Added restriction on email search.

A filter_domain was added in the sender and recipient fields to be able to handle a more specific filter when using mail tracking.
This commit is contained in:
angelJuaGar 2021-08-13 10:07:40 -05:00 committed by Jasmin Solanki
parent 814329c55a
commit f2adbca256

View File

@ -99,8 +99,16 @@
string="Email"
filter_domain="['|', ('sender', 'ilike', self), ('recipient', 'ilike', self)]"
/>
<field name="sender" string="Sender" />
<field name="recipient" string="Recipient" />
<field
name="sender"
string="Sender"
filter_domain="[('sender', '=', self)]"
/>
<field
name="recipient"
string="Recipient"
filter_domain="[('recipient', '=', self)]"
/>
<field name="name" string="Subject" />
<field name="time" string="Time" />
<field name="date" string="Date" />