Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions cmis_mail/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=========
Cmis Mail
=========

This module allows to store attachments with CMIS from the mail
composer if the source model has at least one CMIS folder.
When attachments are added on the mail composer, a checkbox allows to
enable the CMIS storage. If the source model has more than one CMIS
folder, it is possible to specify in which one the attachments must be
stored.

Documentation: `alfodoo.org <http://alfodoo.org>`_

Credits
=======

Contributors
------------

* Thomas Binsfeld <thomas.binsfeld@acsone.eu>

Maintainer
----------

.. image:: https://www.acsone.eu/logo.png
:alt: ACSONE SA/NV
:target: http://www.acsone.eu

This module is maintained by ACSONE SA/NV.
1 change: 1 addition & 0 deletions cmis_mail/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizards
30 changes: 30 additions & 0 deletions cmis_mail/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2022 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Cmis Mail",
"summary": """
This module allows to store attachments with CMIS from the mail
composer if the source model has at least one CMIS folder.
When attachments are added on the mail composer, a checkbox allows to
enable the CMIS storage. If the source model has more than one CMIS
folder, it is possible to specify in which one the attachments must be
stored.""",
"category": "Document Management",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV",
"website": "https://alfodoo.org",
"depends": [
"mail",
"cmis_field",
],
"data": [
"security/acl_ir_model_fields.xml",
"wizards/mail_compose_message.xml",
],
"installable": True,
"images": [
"static/description/main_icon.png",
],
}
89 changes: 89 additions & 0 deletions cmis_mail/i18n/cmis_mail.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * cmis_mail
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-13 09:21+0000\n"
"PO-Revision-Date: 2024-08-13 09:21+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__allowed_cmis_folder_field_ids
msgid "Allowed Cmis Folder Field"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__cmis_folder_selection
msgid "CMIS Folder"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__cmis_folder_field_id
msgid "CMIS Folder Field"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__new_version
msgid "Create a new version"
msgstr ""

#. module: cmis_mail
#: code:addons/cmis_mail/wizards/mail_compose_message.py:0
#, python-format
msgid "Document \"%s\" already exists in CMIS"
msgstr ""

#. module: cmis_mail
#: model:ir.model,name:cmis_mail.model_mail_compose_message
msgid "Email composition wizard"
msgstr ""

#. module: cmis_mail
#: model_terms:ir.ui.view,arch_db:cmis_mail.mail_compose_message_form_view
msgid "Enable"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__is_multiple_cmis_fields
msgid "Is Multiple Cmis Fields"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__error
msgid "Raise exception"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__increment
msgid "Rename as file(X).pdf"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__is_save_in_cmis_enabled
#: model_terms:ir.ui.view,arch_db:cmis_mail.mail_compose_message_form_view
msgid "Save attachments in CMIS"
msgstr ""

#. module: cmis_mail
#: code:addons/cmis_mail/wizards/mail_compose_message.py:0
#, python-format
msgid "Saved from Odoo mail composer"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__cmis_duplicate_handler
msgid "Strategy in case of duplicate"
msgstr ""

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__use_existing
msgid "Use existing"
msgstr ""
89 changes: 89 additions & 0 deletions cmis_mail/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * cmis_mail
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 13.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-13 09:21+0000\n"
"PO-Revision-Date: 2024-08-13 09:21+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__allowed_cmis_folder_field_ids
msgid "Allowed Cmis Folder Field"
msgstr "Dossiers CMIS autorisés"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__cmis_folder_selection
msgid "CMIS Folder"
msgstr "Dossier CMIS"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__cmis_folder_field_id
msgid "CMIS Folder Field"
msgstr "Dossier CMIS"

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__new_version
msgid "Create a new version"
msgstr "Créer une nouvelle version"

#. module: cmis_mail
#: code:addons/cmis_mail/wizards/mail_compose_message.py:0
#, python-format
msgid "Document \"%s\" already exists in CMIS"
msgstr "Le document \"%s\" existe déjà dans CMIS"

#. module: cmis_mail
#: model:ir.model,name:cmis_mail.model_mail_compose_message
msgid "Email composition wizard"
msgstr ""

#. module: cmis_mail
#: model_terms:ir.ui.view,arch_db:cmis_mail.mail_compose_message_form_view
msgid "Enable"
msgstr "Activer"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__is_multiple_cmis_fields
msgid "Is Multiple Cmis Fields"
msgstr "Multiples dossier CMIS"

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__error
msgid "Raise exception"
msgstr "Afficher une erreur"

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__increment
msgid "Rename as file(X).pdf"
msgstr "Renommer en tant que fichier(X).pdf"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__is_save_in_cmis_enabled
#: model_terms:ir.ui.view,arch_db:cmis_mail.mail_compose_message_form_view
msgid "Save attachments in CMIS"
msgstr "Enregistrer les pièces jointes dans CMIS"

#. module: cmis_mail
#: code:addons/cmis_mail/wizards/mail_compose_message.py:0
#, python-format
msgid "Saved from Odoo mail composer"
msgstr "Enregistré depuis le compositeur de courrier Odoo"

#. module: cmis_mail
#: model:ir.model.fields,field_description:cmis_mail.field_mail_compose_message__cmis_duplicate_handler
msgid "Strategy in case of duplicate"
msgstr "Stratégie en cas de doublon"

#. module: cmis_mail
#: model:ir.model.fields.selection,name:cmis_mail.selection__mail_compose_message__cmis_duplicate_handler__use_existing
msgid "Use existing"
msgstr "Utiliser l'existant"
14 changes: 14 additions & 0 deletions cmis_mail/security/acl_ir_model_fields.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2025 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.model.access" id="ir_model_fields_access_user">
<field name="name">ir.model.fields access user</field>
<field name="model_id" ref="base.model_ir_model_fields" />
<field name="group_id" ref="base.group_user" />
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
</record>
</odoo>
15 changes: 15 additions & 0 deletions cmis_mail/security/rules_ir_model_fields.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2025 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.rule" id="ir_model_fields_cmis_user_rule">
<field name="name">ir.model.fields cmis user rule</field>
<field name="model_id" ref="base.model_ir_model_fields" />
<field name="domain_force">[('ttype', '=', 'cmis_folder')]</field>
<field name="perm_read" eval="1" />
<field name="perm_create" eval="0" />
<field name="perm_write" eval="0" />
<field name="perm_unlink" eval="0" />
<field name="groups" eval="[Command.link(ref('base.group_user'))]" />
</record>
</odoo>
Binary file added cmis_mail/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions cmis_mail/static/description/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<section class="s_text_block">
<div class="container">
<h2 class="oe_slogan text-center">Alfodoo, the Odoo-Alfresco connector<br/></h2>
<h3 class="oe_slogan text-center text-muted" style="color: rgb(165, 74, 123);">
<b>Streamline your business processes by managing your documents in their context within any Odoo apps.</b>
</h3>
<div class="row">
<div class="col-md-12 mb16 mt16" style="font-size: 18px;">
<p>
<br/>
</p>
<p>
Alfodoo provides a unique solution to seamlessly integrate the open-source ECM Alfresco with Odoo and let the user manages his documents in Alfresco without leaving his Odoo work environment.
</p>
<p>
<br/>
<b>Benefits from the Alfodoo connector:</b>
</p>
<ul>
<li>
<p>Manage your content/documents linked to your Odoo processes;</p>
</li>
<li>
<p>Make classification and indexing of content/documents easier and more qualitative;</p>
</li>
<li>
<p>Enrich documents with Odoo business record information to exploit the powerful Alfresco document management capabilities.</p>
</li>
</ul>
<p>
This module allows to store attachments with CMIS from the mail composer if the source model has at least one CMIS folder.
When attachments are added on the mail composer, a checkbox allows to enable the CMIS storage. If the source model has more than one CMIS folder,
it is possible to specify in which one the attachments must be stored.
</p>
</div>
</div>
</div>
</section>
Binary file added cmis_mail/static/description/main_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions cmis_mail/wizards/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import mail_compose_message
Loading