diff --git a/mail_drop_target/__manifest__.py b/mail_drop_target/__manifest__.py index a543bb1137..64e49ffdd8 100644 --- a/mail_drop_target/__manifest__.py +++ b/mail_drop_target/__manifest__.py @@ -8,9 +8,13 @@ "category": "Discuss", "website": "https://github.com/OCA/social", "summary": "Attach emails to Odoo by dragging them from your desktop", - "depends": ["mail"], + "depends": ["mail","mass_mailing"], "external_dependencies": {"python": ["extract_msg", "cryptography<37"]}, - "data": ["views/res_config_settings_views.xml"], + "data": [ + "security/groups.xml", + "security/ir.model.access.csv", + "views/res_config_settings_views.xml" + ], "assets": { "web.assets_backend": [ "mail_drop_target/static/src/js/file_uploader.esm.js", diff --git a/mail_drop_target/security/groups.xml b/mail_drop_target/security/groups.xml new file mode 100644 index 0000000000..ed18738aef --- /dev/null +++ b/mail_drop_target/security/groups.xml @@ -0,0 +1,10 @@ + + + + Drop email in chatter + + + diff --git a/mail_drop_target/security/ir.model.access.csv b/mail_drop_target/security/ir.model.access.csv new file mode 100644 index 0000000000..df5f455d13 --- /dev/null +++ b/mail_drop_target/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_mailing_trace_user,mailing.trace.user,mass_mailing.model_mailing_trace,mail_drop_target.group_mailing_drop_mail,1,1,1,1 \ No newline at end of file