-
- Downloads
[IMP] mail: allow tracking on groups protected fields
Purpose ======= Currently fields with a `groups` attribute can't be tracked. Otherwise changes would be visible by all in the chatter, including users which normally don't have the access rights because they are not members of `groups`. Specification ============= Filter tracking field values according to the `groups` attributes. Users without the access rights should not see them. If a message is only composed of tracking values and the user doesn't have the rights to see them, an empty message should not be displayed.
Showing
- addons/mail/models/mail_message.py 10 additions, 8 deletionsaddons/mail/models/mail_message.py
- addons/mail/models/mail_thread.py 1 addition, 1 deletionaddons/mail/models/mail_thread.py
- addons/mail/models/mail_tracking_value.py 7 additions, 0 deletionsaddons/mail/models/mail_tracking_value.py
- addons/mail/models/res_partner.py 5 additions, 3 deletionsaddons/mail/models/res_partner.py
- addons/mail/static/src/js/models/messages/abstract_message.js 11 additions, 0 deletions...ns/mail/static/src/js/models/messages/abstract_message.js
- addons/mail/static/src/xml/thread.xml 1 addition, 1 deletionaddons/mail/static/src/xml/thread.xml
- addons/test_mail/tests/test_message_track.py 18 additions, 0 deletionsaddons/test_mail/tests/test_message_track.py
- addons/test_mail/tests/test_performance.py 3 additions, 3 deletionsaddons/test_mail/tests/test_performance.py
Loading
Please register or sign in to comment