Merge pull request #3473 from expsa/doamin-filter-incoming-transactions

reomve coments
This commit is contained in:
ahmed-nouri051 2025-06-17 10:00:43 +02:00 committed by GitHub
commit c71097e88b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

View File

@ -179,18 +179,18 @@
('state', 'in', ['send', 'reply']), ('state', 'in', ['send', 'reply']),
'|', '|', '|', '|', '|', '|',
// 💡 CASE 1: Directly addressed to you or your secretary
'|', '|',
('to_ids.secretary_id.user_id', '=', uid), ('to_ids.secretary_id.user_id', '=', uid),
('to_ids.user_id', '=', uid), ('to_ids.user_id', '=', uid),
// 💡 CASE 2: Forwarded to you
('forward_user_id', '=', uid), ('forward_user_id', '=', uid),
// 💡 CASE 3: You are the creator
('create_uid', '=', uid), ('create_uid', '=', uid),
// 💡 CASE 4: You are involved in the trace or the receive_user_id
'|', '|', '|', '|', '|', '|',
('trace_ids.to_id.user_id', '=', uid), ('trace_ids.to_id.user_id', '=', uid),
('trace_ids.from_id.user_id', '=', uid), ('trace_ids.from_id.user_id', '=', uid),