-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by lmignon
- Loading branch information
Showing
18 changed files
with
580 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../storage_media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
.. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html | ||
:alt: License: LGPL-3 | ||
|
||
============== | ||
Storage Media | ||
============== | ||
|
||
This module add the possibilty to store media (with specific tag/typology) on a public | ||
storage in order to make them accessible on the web for your customer | ||
|
||
Installation | ||
============ | ||
|
||
Nothing special required | ||
|
||
|
||
Configuration | ||
============= | ||
|
||
Install the module and configure your storage (see storage module) | ||
|
||
Usage | ||
===== | ||
|
||
Go on the storage form and add a media | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* Nothing | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/akretion/odoo-shopinvader/issues>`_. In case of trouble, please | ||
check there if your issue has already been reported. If you spotted it first, | ||
help us smashing it by providing a detailed and welcomed feedback. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Sebastien Beau <sebastien.beau@akretion.com> | ||
|
||
Funders | ||
------- | ||
|
||
The development of this module has been financially supported by: | ||
|
||
* Akretion R&D | ||
* Adaptoo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Copyright 2017 Akretion (http://www.akretion.com). | ||
# @author Sébastien BEAU <sebastien.beau@akretion.com> | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
{ | ||
"name": "Storage Media", | ||
"summary": "Give the posibility to store media data in Odoo", | ||
"version": "15.0.1.0.0", | ||
"category": "Uncategorized", | ||
"website": "https://github.com/OCA/storage", | ||
"author": " Akretion, Odoo Community Association (OCA)", | ||
"license": "LGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"external_dependencies": {"python": [], "bin": []}, | ||
"depends": ["storage_file", "storage_thumbnail"], | ||
"data": [ | ||
"views/storage_media_view.xml", | ||
"data/ir_parameter.xml", | ||
"security/res_group.xml", | ||
"security/ir_rule.xml", | ||
"security/ir.model.access.csv", | ||
], | ||
"demo": [], | ||
"qweb": [], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo noupdate="1"> | ||
|
||
<record id="storage_media_backend" model="ir.config_parameter"> | ||
<field name="key">storage.media.backend_id</field> | ||
<field name="value" ref="storage_backend.default_storage_backend" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * storage_media | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 14.0\n" | ||
"Report-Msgid-Bugs-To: \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: storage_media | ||
#: model:ir.model.fields,help:storage_media.field_storage_media__url_path | ||
msgid "Accessible path, no base URL" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__active | ||
msgid "Active" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__checksum | ||
msgid "Checksum/SHA1" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__code | ||
msgid "Code" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__company_id | ||
msgid "Company" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__create_uid | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__create_uid | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__create_date | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__create_date | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__data | ||
msgid "Data" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,help:storage_media.field_storage_media__data | ||
msgid "Datas" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_file__display_name | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__display_name | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__extension | ||
msgid "Extension" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__file_id | ||
msgid "File" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__file_size | ||
msgid "File Size" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_file__file_type | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_image__file_type | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__file_type | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_thumbnail__file_type | ||
msgid "File Type" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__filename | ||
msgid "Filename without extension" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,help:storage_media.field_storage_media__internal_url | ||
msgid "HTTP URL to load the file directly from storage." | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,help:storage_media.field_storage_media__url | ||
msgid "HTTP accessible path to the file" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__human_file_size | ||
msgid "Human File Size" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_file__id | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__id | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__internal_url | ||
msgid "Internal Url" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_file____last_update | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media____last_update | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type____last_update | ||
msgid "Last Modified on" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__write_uid | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__write_date | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__write_date | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields.selection,name:storage_media.selection__storage_file__file_type__media | ||
msgid "Media" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__media_type_id | ||
msgid "Media Type" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__mimetype | ||
msgid "Mime Type" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__name | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media_type__name | ||
msgid "Name" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__relative_path | ||
msgid "Relative Path" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,help:storage_media.field_storage_media__relative_path | ||
msgid "Relative location for backend" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__slug | ||
msgid "Slug" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,help:storage_media.field_storage_media__slug | ||
msgid "Slug-ified name with ID for URL" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__backend_id | ||
msgid "Storage" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model,name:storage_media.model_storage_file | ||
msgid "Storage File" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.actions.act_window,name:storage_media.storage_media_action | ||
#: model:ir.model,name:storage_media.model_storage_media | ||
#: model:ir.ui.menu,name:storage_media.storage_media_menu | ||
#: model_terms:ir.ui.view,arch_db:storage_media.storage_media_view_form | ||
#: model_terms:ir.ui.view,arch_db:storage_media.storage_media_view_tree | ||
msgid "Storage Media" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:res.groups,name:storage_media.group_media_manager | ||
msgid "Storage Media Manager" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.actions.act_window,name:storage_media.act_open_storage_media_type_view | ||
#: model:ir.model,name:storage_media.model_storage_media_type | ||
#: model:ir.ui.menu,name:storage_media.menu_storage_media_type | ||
#: model_terms:ir.ui.view,arch_db:storage_media.storage_media_type_view_form | ||
#: model_terms:ir.ui.view,arch_db:storage_media.storage_media_type_view_search | ||
#: model_terms:ir.ui.view,arch_db:storage_media.storage_media_type_view_tree | ||
msgid "Storage Media Type" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__to_delete | ||
msgid "To Delete" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__url | ||
msgid "Url" | ||
msgstr "" | ||
|
||
#. module: storage_media | ||
#: model:ir.model.fields,field_description:storage_media.field_storage_media__url_path | ||
msgid "Url Path" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import storage_file | ||
from . import storage_media | ||
from . import storage_media_type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Copyright 2017 Akretion (http://www.akretion.com). | ||
# @author Sébastien BEAU <sebastien.beau@akretion.com> | ||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class StorageFile(models.Model): | ||
_inherit = "storage.file" | ||
|
||
file_type = fields.Selection( | ||
selection_add=[("media", "Media")], ondelete={"media": "set null"} | ||
) |
Oops, something went wrong.