Skip to content

Commit

Permalink
TA#72917 [16.0][MIG] admin_light_email : mail_activity _types views (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo2302 authored Dec 17, 2024
1 parent 40164fa commit 27abd87
Show file tree
Hide file tree
Showing 12 changed files with 78 additions and 57 deletions.
3 changes: 3 additions & 0 deletions admin_light_mail/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ A new group `Safe Administration / Mail Subtypes` is added.

* View and edit the list of subtypes.

Mail Activity Type
------------------
* View and edit the list of all activity type

Contributors
------------
Expand Down
13 changes: 7 additions & 6 deletions admin_light_mail/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Admin Light Email",
"version": "16.0.1.0.1",
"version": "16.0.1.1.0",
"author": "Numigi",
"maintainer": "Numigi",
"license": "LGPL-3",
Expand All @@ -14,13 +14,14 @@
"mail",
],
"data": [
"views/common.xml",
"views/mail_mail.xml",
"views/mail_message_subtype.xml",
"views/mail_server.xml",
"security/security.xml",
"security/ir.model.access.csv",
"views/mail_template.xml",
"views/menu_item.xml",
"views/mail_message_views.xml",
"views/mail_message_subtype_views.xml",
"views/mail_server_views.xml",
"views/mail_template_views.xml",
"views/mail_activity_type_views.xml",
],
"installable": True,
}
9 changes: 7 additions & 2 deletions admin_light_mail/i18n/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-16 20:00+0000\n"
"PO-Revision-Date: 2024-09-16 20:00+0000\n"
"POT-Creation-Date: 2024-12-10 05:38+0000\n"
"PO-Revision-Date: 2024-12-10 05:38+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -42,6 +42,11 @@ msgstr "Courriels"
msgid "Incoming Mail Servers"
msgstr "Serveurs entrants"

#. module: admin_light_mail
#: model:ir.ui.menu,name:admin_light_mail.menu_mail_activity_type
msgid "Mail Activity Types"
msgstr "Types d'activités"

#. module: admin_light_mail
#: model:ir.model,name:admin_light_mail.model_ir_mail_server
msgid "Mail Server"
Expand Down
28 changes: 23 additions & 5 deletions admin_light_mail/security/security.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="mail.access_mail_template_editor" model="ir.model.access">
<field name="active" eval="False"/>
<record id="group_email_server" model="res.groups">
<field name="name">Email Servers</field>
<field name="category_id" ref="admin_light_base.module_category_admin" />
<field name="implied_ids" eval="[(4, ref('admin_light_base.group_admin'))]" />
</record>

<record id="group_email_messages" model="res.groups">
<field name="name">Emails</field>
<field name="category_id" ref="admin_light_base.module_category_admin" />
<field name="implied_ids" eval="[(4, ref('admin_light_base.group_admin'))]" />
</record>

<record id="group_email_template" model="res.groups">
Expand All @@ -11,6 +19,16 @@
<field name="implied_ids" eval="[(4, ref('admin_light_base.group_admin'))]" />
</record>

<record id="group_mail_subtype" model="res.groups">
<field name="name">Mail Subtypes</field>
<field name="category_id" ref="admin_light_base.module_category_admin" />
<field name="implied_ids" eval="[(4, ref('admin_light_base.group_admin'))]" />
</record>

<record id="mail.mail_template_editor_rule" model="ir.rule">
<field name="groups" eval="[(3, ref('mail.group_mail_template_editor'))]"/>
</record>

<record id="rule_mail_template_edit_own" model="ir.rule">
<field name="name">Users can only change their own templates</field>
<field name="model_id" ref="mail.model_mail_template"/>
Expand All @@ -22,14 +40,14 @@
<field name="perm_unlink" eval="True"/>
</record>

<record id="mail.access_mail_template_editor" model="ir.model.access">
<field name="active" eval="False"/>
</record>
<function name="write" model="ir.model.data">
<value model="ir.model.data" search="[('module', '=', 'mail'), ('name', '=', 'mail_template_editor_rule')]"/>
<value eval="{'noupdate': False}"/>
</function>

<record id="mail.mail_template_editor_rule" model="ir.rule">
<field name="groups" eval="[(3, ref('mail.group_mail_template_editor'))]"/>
</record>

<function name="write" model="ir.model.data">
<value model="ir.model.data" search="[('module', '=', 'mail'), ('name', '=', 'mail_template_editor_rule')]"/>
Expand Down
12 changes: 12 additions & 0 deletions admin_light_mail/views/mail_activity_type_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<menuitem
id="menu_mail_activity_type"
action="mail.mail_activity_type_action"
name="Mail Activity Types"
parent="menu_email"
sequence="20"
/>

</odoo>
19 changes: 0 additions & 19 deletions admin_light_mail/views/mail_mail.xml

This file was deleted.

19 changes: 0 additions & 19 deletions admin_light_mail/views/mail_message_subtype.xml

This file was deleted.

13 changes: 13 additions & 0 deletions admin_light_mail/views/mail_message_subtype_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<menuitem
id="menu_mail_subtype"
name="Subtypes"
parent="menu_email"
groups="group_mail_subtype"
action="mail.action_view_message_subtype"
sequence="50"
/>

</odoo>
13 changes: 13 additions & 0 deletions admin_light_mail/views/mail_message_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<menuitem
id="menu_email_list"
name="Emails"
parent="menu_email"
groups="group_email_messages"
action="mail.action_view_mail_mail"
sequence="1"
/>

</odoo>
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>

<record id="group_email_server" model="res.groups">
<field name="name">Email Servers</field>
<field name="category_id" ref="admin_light_base.module_category_admin" />
<field name="implied_ids" eval="[(4, ref('admin_light_base.group_admin'))]" />
</record>

<menuitem
id="menu_outgoing_mail_server"
name="Outgoing Mail Servers"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 27abd87

Please sign in to comment.