Skip to content

Commit

Permalink
[ADD] cmis_mail: store mail composer attachments in CMIS
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBinsfeld committed Aug 13, 2024
1 parent 2470c44 commit 2ddcdb0
Show file tree
Hide file tree
Showing 12 changed files with 440 additions and 0 deletions.
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
29 changes: 29 additions & 0 deletions cmis_mail/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Copyright 2022 ACSONE SA/NV
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Cmis Mail",
"description": """
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": "13.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV",
'website': 'http://alfodoo.org/',
"depends": [
"mail",
"cmis_field",
],
"data": [
"wizards/mail_compose_message.xml",
],
'installable': True,
'images': [
'static/description/main_icon.png',
],
}
84 changes: 84 additions & 0 deletions cmis_mail/i18n/cmis_mail.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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_field_id
msgid "CMIS Folder"
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 ""
84 changes: 84 additions & 0 deletions cmis_mail/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# 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_field_id
msgid "CMIS Folder"
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"
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

0 comments on commit 2ddcdb0

Please sign in to comment.