[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:
parent
814329c55a
commit
f2adbca256
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user