diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2018-12-12 18:35:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-12 18:35:02 +0100 |
| commit | ff0c71f373864cf80b79da23e7386ad45b20cd4f (patch) | |
| tree | 79a6c0d4352642dfeb9f6e478968f9d80f16fad2 /addons/mail/data/mail_data.xml | |
| parent | 13eb9b9c5b77cb42616f91dc4db48e0a6aab014e (diff) | |
| parent | abc212f59a51d7b1de99201d5bb07c871021e766 (diff) | |
[MERGE][REF] mail: clean access right check on activities
This merge improves code of access rights checks when creating or updating
activities. Several points triggers this commit
* we would like to use _filter_access_rules and override it on activities
model in order to be more standard;
* we would like to get rid of sudo used in various CRUD overrides as using
standard ORM method allows to correctly use current user;
* we would like to get rid of create_user_id field once we can keep the
current user as create_uid;
Access rights are a bit updated. They are now the following
* you can create activities for documents like posting messages (using
_mail_post_access attribute; if not defined, write access on document
is required);
* you can read activities for documents you can read;
* you can write and unlink activities either following the defined access
rule (created OR assigned), and otherwise like posting messages (
using _mail_post_access attribute; if not defined, write access on
document is required);
In this merge we also hide edit / mark as done / cancel buttons for
activities the current user cannot modify.
Finally create_user_id field related to activities is replaced by create_uid
everywhere.
This commit is linked to task ID 1856417.
closes odoo/odoo#27619
Diffstat (limited to 'addons/mail/data/mail_data.xml')
| -rw-r--r-- | addons/mail/data/mail_data.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index 9553cc5b69e..ec4868a9a75 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -327,7 +327,7 @@ <template id="message_activity_assigned"> <div style="margin: 0px; padding: 0px; font-size: 13px;"> - <span t-field="activity.create_user_id.name"/> assigned you an activity <span t-field="activity.activity_type_id.name"/> + <span t-field="activity.create_uid.name"/> assigned you an activity <span t-field="activity.activity_type_id.name"/> <t t-if="activity.summary">(<span t-field="activity.summary"/>)</t> on <span t-field="activity.res_name"/> to close for <span t-field="activity.date_deadline"/>.<br /> |
