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
102 changes: 102 additions & 0 deletions web_editor_media_dialog_dms/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

===========================
Web Editor Media Dialog DMS
===========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:69ef360f611a9faaf1e4bb82d63b18c7a0b57133c2a7057ab6b2ef0309333755
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdms-lightgray.png?logo=github
:target: https://github.com/OCA/dms/tree/18.0/web_editor_media_dialog_dms
:alt: OCA/dms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/dms-18-0/dms-18-0-web_editor_media_dialog_dms
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/dms&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds the option in the web editor to include an image with
the corresponding link to open/download the linked files.

**Table of contents**

.. contents::
:local:

Usage
=====

To use this module, we need:

1. Navigate to a model that has an HTML field
2. Edit the field
3. Type /image to open the media dialog
4. Select the DMS tab
5. Select the DMS file to be added

You can also edit the selected file making a double click on the image
added to web editor.

If you want to share the file to a public user, you can do it by
selecting the option **Allow open to public users** which is located on
DMS tab of media dialog.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/dms/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/dms/issues/new?body=module:%20web_editor_media_dialog_dms%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Tecnativa

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

- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Carlos Roca

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/dms <https://github.com/OCA/dms/tree/18.0/web_editor_media_dialog_dms>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions web_editor_media_dialog_dms/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
17 changes: 17 additions & 0 deletions web_editor_media_dialog_dms/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 Tecnativa - Carlos Roca
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Web Editor Media Dialog DMS",
"summary": "Integrate DMS with media dialog of web editor",
"version": "19.0.1.0.0",
"license": "AGPL-3",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/dms",
"depends": ["dms", "web_editor"],
"assets": {
"html_editor.assets_media_dialog": [
"web_editor_media_dialog_dms/static/src/media_dialog/*",
]
},
}
62 changes: 62 additions & 0 deletions web_editor_media_dialog_dms/i18n/ar.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_editor_media_dialog_dms
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
"Language: ar\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 ? 4 : 5;\n"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "All DMS files have been loaded"
msgstr ""

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "Allow open to public users"
msgstr ""

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_dms_file
msgid "File"
msgstr ""

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_ir_binary
msgid "File streaming helper model for controllers"
msgstr ""

#. module: web_editor_media_dialog_dms
#. odoo-python
#: code:addons/web_editor_media_dialog_dms/models/dms_file.py:0
msgid "Invalid access token"
msgstr ""

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "Load more..."
msgstr ""

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "No DMS files found."
msgstr ""

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.esm.js:0
msgid "Search a dms file"
msgstr ""
70 changes: 70 additions & 0 deletions web_editor_media_dialog_dms/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_editor_media_dialog_dms
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-22 09:04+0000\n"
"PO-Revision-Date: 2024-08-22 11:05+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 3.0.1\n"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "All DMS files have been loaded"
msgstr "Todos los archivos DMS han sido cargados"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "Allow open to public users"
msgstr "Permitir abrir enlace a usuarios públicos"

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_dms_file
msgid "File"
msgstr "Archivo"

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_ir_binary
msgid "File streaming helper model for controllers"
msgstr "Modelo de ayuda para la transmisión de archivos para controladores"

#. module: web_editor_media_dialog_dms
#. odoo-python
#: code:addons/web_editor_media_dialog_dms/models/dms_file.py:0
#, python-format
msgid "Invalid access token"
msgstr "Token de acceso inválido"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "Load more..."
msgstr "Cargar más..."

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "No DMS files found."
msgstr "No se encontraron archivos DMS."

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.esm.js:0
#, python-format
msgid "Search a dms file"
msgstr "Buscar un archivo DMS"
69 changes: 69 additions & 0 deletions web_editor_media_dialog_dms/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_editor_media_dialog_dms
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2024-08-29 13:06+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 5.6.2\n"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "All DMS files have been loaded"
msgstr "Tutti i file DMS sono stati caricati"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "Allow open to public users"
msgstr "Consenti l'apertura a utenti pubblici"

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_dms_file
msgid "File"
msgstr "File"

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_ir_binary
msgid "File streaming helper model for controllers"
msgstr "Modello aiuto streaming file per controller"

#. module: web_editor_media_dialog_dms
#. odoo-python
#: code:addons/web_editor_media_dialog_dms/models/dms_file.py:0
#, python-format
msgid "Invalid access token"
msgstr "Token accesso non valido"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "Load more..."
msgstr "Carica altri..."

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
#, python-format
msgid "No DMS files found."
msgstr "Nessun file DMS trovato."

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.esm.js:0
#, python-format
msgid "Search a dms file"
msgstr "Cerca un file DMS"
64 changes: 64 additions & 0 deletions web_editor_media_dialog_dms/i18n/sl.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * web_editor_media_dialog_dms
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2026-06-22 09:08+0000\n"
"Last-Translator: Matjaz Mozetic <matjaz@luxim.si>\n"
"Language-Team: none\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3;\n"
"X-Generator: Weblate 5.15.2\n"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "All DMS files have been loaded"
msgstr "Vse datoteke DMS so naložene"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "Allow open to public users"
msgstr "Dovoli odpiranje javnim uporabnikom"

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_dms_file
msgid "File"
msgstr "Datoteka"

#. module: web_editor_media_dialog_dms
#: model:ir.model,name:web_editor_media_dialog_dms.model_ir_binary
msgid "File streaming helper model for controllers"
msgstr "Pomožni model za pretakanje datotek za kontrolerje"

#. module: web_editor_media_dialog_dms
#. odoo-python
#: code:addons/web_editor_media_dialog_dms/models/dms_file.py:0
msgid "Invalid access token"
msgstr "Neveljaven dostopni žeton"

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "Load more..."
msgstr "Naloži več..."

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.xml:0
msgid "No DMS files found."
msgstr "Ni najdenih DMS datotek."

#. module: web_editor_media_dialog_dms
#. odoo-javascript
#: code:addons/web_editor_media_dialog_dms/static/src/media_dialog/dms_selector.esm.js:0
msgid "Search a dms file"
msgstr "Iskanje DMS datoteke"
Loading
Loading