Skip to content

Commit

Permalink
[IMP] mail_drop_target: introduce group to control mailing_trace mode…
Browse files Browse the repository at this point in the history
…l access
  • Loading branch information
ajaniszewska-dev committed Sep 11, 2024
1 parent 13f3fe7 commit e5ab024
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 6 deletions.
8 changes: 6 additions & 2 deletions mail_drop_target/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
7 changes: 7 additions & 0 deletions mail_drop_target/security/groups.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" ?>
<odoo>
<record model="res.groups" id="group_mailing_drop_mail">
<field name="name">Drop email in chatter</field>
<field name="users" eval="[(4, ref('base.group_user'))]" />
</record>
</odoo>
2 changes: 2 additions & 0 deletions mail_drop_target/security/ir.model.access.csv
Original file line number Diff line number Diff line change
@@ -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
11 changes: 7 additions & 4 deletions mail_drop_target/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@

/*
:Author: David Goodger ([email protected])
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.

Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.

See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
Expand Down Expand Up @@ -274,7 +275,7 @@
margin-left: 2em ;
margin-right: 2em }

pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
Expand All @@ -300,7 +301,7 @@
span.pre {
white-space: pre }

span.problematic {
span.problematic, pre.problematic {
color: red }

span.section-subtitle {
Expand Down Expand Up @@ -436,7 +437,9 @@ <h2><a class="toc-backref" href="#toc-entry-7">Other credits</a></h2>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>
Expand Down

0 comments on commit e5ab024

Please sign in to comment.