-
Notifications
You must be signed in to change notification settings - Fork 28.1k
[IMP] mail: remove the use of read in activity _to_store #189598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IMP] mail: remove the use of read in activity _to_store #189598
Conversation
989e77e
to
f18a373
Compare
03acfea
to
d3a78e8
Compare
d3a78e8
to
79478ac
Compare
There are missing parts to the PR, the goal is also to use This requires creating the missing models and updating static/ code when access to relation field of activity are done with brackets. Note: we'll very likely merge this one after #184344 |
58ba643
to
5b93873
Compare
@robodoo override=ci/security rebase-ff |
Merge method set to rebase and fast-forward. |
1bf564b
to
cc89ca3
Compare
Currently the `_to_store` of `mail.activity` is actually returning all fields (just using `read()` result). In order to improve _to_store and also to reduce the number of useless fields we send, we should actually list only the fields we need (also taking care of overrides if necessary). In a similar pattern as other _to_store methods. Task-4364655
cc89ca3
to
c8396da
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@robodoo r+
Part-of: #189598 Related: odoo/enterprise#75172 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Currently the `_to_store` of `mail.activity` is actually returning all fields (just using `read()` result). In order to improve _to_store and also to reduce the number of useless fields we send, we should actually list only the fields we need (also taking care of overrides if necessary). In a similar pattern as other _to_store methods. Task-4364655 closes #189598 Related: odoo/enterprise#75172 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Part-of: #189598 Related: odoo/enterprise#75172 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Currently the `_to_store` of `mail.activity` is actually returning all fields (just using `read()` result). In order to improve _to_store and also to reduce the number of useless fields we send, we should actually list only the fields we need (also taking care of overrides if necessary). In a similar pattern as other _to_store methods. Task-4364655 closes #189598 Related: odoo/enterprise#75172 Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Follow up of odoo#189598 Follow up of odoo#210060 task-4794562
Follow up of odoo#189598 Follow up of odoo#210060 task-4794562
Currently the
_to_store
ofmail.activity
is actually returning all fields (just usingread()
result).In order to improve _to_store and also to reduce the number of useless fields we send, we should actually list only the fields we need (also taking care of overrides if necessary). In a similar pattern as other _to_store methods.
PR enterprise: https://github.com/odoo/enterprise/pull/75172
Task-4364655