diff --git a/maintenance_equipment_image/README.rst b/maintenance_equipment_image/README.rst new file mode 100644 index 000000000..fc1490905 --- /dev/null +++ b/maintenance_equipment_image/README.rst @@ -0,0 +1,84 @@ +=========================== +Maintenance Equipment Image +=========================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:5e0e01b8d0355fe067a5080c15f4b58dd7125bc1fc8b9e307c4164f5851f2fde + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/licence-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%2Fmaintenance-lightgray.png?logo=github + :target: https://github.com/OCA/maintenance/tree/17.0/maintenance_equipment_image + :alt: OCA/maintenance +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/maintenance-17-0/maintenance-17-0-maintenance_equipment_image + :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/maintenance&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds images to the maintenance equipments. + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Exo Software + +Contributors +------------ + +- Pedro Castro Silva + +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. + +.. |maintainer-pedrocasi| image:: https://github.com/pedrocasi.png?size=40px + :target: https://github.com/pedrocasi + :alt: pedrocasi + +Current `maintainer `__: + +|maintainer-pedrocasi| + +This module is part of the `OCA/maintenance `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/maintenance_equipment_image/__init__.py b/maintenance_equipment_image/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/maintenance_equipment_image/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/maintenance_equipment_image/__manifest__.py b/maintenance_equipment_image/__manifest__.py new file mode 100644 index 000000000..238d3feec --- /dev/null +++ b/maintenance_equipment_image/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2021 Exo Software +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Maintenance Equipment Image", + "summary": """Adds images to equipment.""", + "category": "Manufacturing/Maintenance", + "version": "17.0.1.0.0", + "license": "AGPL-3", + "author": "Exo Software," "Odoo Community Association (OCA)", + "maintainers": ["pedrocasi"], + "website": "https://github.com/OCA/maintenance", + "depends": ["maintenance"], + "data": [ + "views/maintenance_equipment_views.xml", + ], + "installable": True, + "application": False, +} diff --git a/maintenance_equipment_image/i18n/es.po b/maintenance_equipment_image/i18n/es.po new file mode 100644 index 000000000..209ced378 --- /dev/null +++ b/maintenance_equipment_image/i18n/es.po @@ -0,0 +1,52 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_image +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-07-22 23:09+0000\n" +"Last-Translator: Ivorra78 \n" +"Language-Team: none\n" +"Language: es\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 4.17\n" + +#. module: maintenance_equipment_image +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_image.hr_equipment_view_kanban +msgid "Equipment" +msgstr "Equipamiento" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1920 +msgid "Image" +msgstr "Imagen" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1024 +msgid "Image 1024" +msgstr "Image 1024" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_128 +msgid "Image 128" +msgstr "Image 128" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_256 +msgid "Image 256" +msgstr "Image 256" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_512 +msgid "Image 512" +msgstr "Image 512" + +#. module: maintenance_equipment_image +#: model:ir.model,name:maintenance_equipment_image.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "Equipo de Mantenimiento" diff --git a/maintenance_equipment_image/i18n/it.po b/maintenance_equipment_image/i18n/it.po new file mode 100644 index 000000000..adba534d3 --- /dev/null +++ b/maintenance_equipment_image/i18n/it.po @@ -0,0 +1,61 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_image +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-07-25 12:12+0000\n" +"Last-Translator: Francesco Foresti \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 4.17\n" + +#. module: maintenance_equipment_image +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_image.hr_equipment_view_kanban +msgid "Equipment" +msgstr "Attrezzatura" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1920 +msgid "Image" +msgstr "Immagine" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1024 +msgid "Image 1024" +msgstr "Immagine 1024" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_128 +msgid "Image 128" +msgstr "Immagine 128" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_256 +msgid "Image 256" +msgstr "Immagine 256" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_512 +msgid "Image 512" +msgstr "Immagine 512" + +#. module: maintenance_equipment_image +#: model:ir.model,name:maintenance_equipment_image.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "Attrezzatura manutenzione" + +#~ msgid "Display Name" +#~ msgstr "Nome visualizzato" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Ultima modifica il" diff --git a/maintenance_equipment_image/i18n/maintenance_equipment_image.pot b/maintenance_equipment_image/i18n/maintenance_equipment_image.pot new file mode 100644 index 000000000..f36217b86 --- /dev/null +++ b/maintenance_equipment_image/i18n/maintenance_equipment_image.pot @@ -0,0 +1,49 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_image +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.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: maintenance_equipment_image +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_image.hr_equipment_view_kanban +msgid "Equipment" +msgstr "" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1920 +msgid "Image" +msgstr "" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1024 +msgid "Image 1024" +msgstr "" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_128 +msgid "Image 128" +msgstr "" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_256 +msgid "Image 256" +msgstr "" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_512 +msgid "Image 512" +msgstr "" + +#. module: maintenance_equipment_image +#: model:ir.model,name:maintenance_equipment_image.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "" diff --git a/maintenance_equipment_image/i18n/pt.po b/maintenance_equipment_image/i18n/pt.po new file mode 100644 index 000000000..f6df42ad8 --- /dev/null +++ b/maintenance_equipment_image/i18n/pt.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_image +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-12-04 10:04+0000\n" +"PO-Revision-Date: 2021-12-04 10:05+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: \n" +"Language: pt\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 3.0\n" + +#. module: maintenance_equipment_image +#: model_terms:ir.ui.view,arch_db:maintenance_equipment_image.hr_equipment_view_kanban +msgid "Equipment" +msgstr "Equipamento" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1920 +msgid "Image" +msgstr "Imagem" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_1024 +msgid "Image 1024" +msgstr "Imagem 1024" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_128 +msgid "Image 128" +msgstr "Imagem 128" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_256 +msgid "Image 256" +msgstr "Imagem 256" + +#. module: maintenance_equipment_image +#: model:ir.model.fields,field_description:maintenance_equipment_image.field_maintenance_equipment__image_512 +msgid "Image 512" +msgstr "Imagem 512" + +#. module: maintenance_equipment_image +#: model:ir.model,name:maintenance_equipment_image.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "Equipamento de Manutenção" + +#~ msgid "Display Name" +#~ msgstr "Nome a Apresentar" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificação Em" diff --git a/maintenance_equipment_image/models/__init__.py b/maintenance_equipment_image/models/__init__.py new file mode 100644 index 000000000..e960c415c --- /dev/null +++ b/maintenance_equipment_image/models/__init__.py @@ -0,0 +1 @@ +from . import maintenance_equipment diff --git a/maintenance_equipment_image/models/maintenance_equipment.py b/maintenance_equipment_image/models/maintenance_equipment.py new file mode 100644 index 000000000..0d5383824 --- /dev/null +++ b/maintenance_equipment_image/models/maintenance_equipment.py @@ -0,0 +1,9 @@ +# Copyright 2021 Exo Software, Lda. +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import models + + +class MaintenanceEquipment(models.Model): + _inherit = ["maintenance.equipment", "image.mixin"] + _name = "maintenance.equipment" diff --git a/maintenance_equipment_image/pyproject.toml b/maintenance_equipment_image/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/maintenance_equipment_image/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/maintenance_equipment_image/readme/CONTRIBUTORS.md b/maintenance_equipment_image/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..8a75d58ca --- /dev/null +++ b/maintenance_equipment_image/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Pedro Castro Silva \<\> diff --git a/maintenance_equipment_image/readme/DESCRIPTION.md b/maintenance_equipment_image/readme/DESCRIPTION.md new file mode 100644 index 000000000..47e9bcec5 --- /dev/null +++ b/maintenance_equipment_image/readme/DESCRIPTION.md @@ -0,0 +1 @@ +This module adds images to the maintenance equipments. diff --git a/maintenance_equipment_image/static/description/icon.png b/maintenance_equipment_image/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/maintenance_equipment_image/static/description/icon.png differ diff --git a/maintenance_equipment_image/static/description/index.html b/maintenance_equipment_image/static/description/index.html new file mode 100644 index 000000000..af9a83e9b --- /dev/null +++ b/maintenance_equipment_image/static/description/index.html @@ -0,0 +1,425 @@ + + + + + +Maintenance Equipment Image + + + +
+

Maintenance Equipment Image

+ + +

Beta License: AGPL-3 OCA/maintenance Translate me on Weblate Try me on Runboat

+

This module adds images to the maintenance equipments.

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Exo Software
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

Current maintainer:

+

pedrocasi

+

This module is part of the OCA/maintenance project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/maintenance_equipment_image/views/maintenance_equipment_views.xml b/maintenance_equipment_image/views/maintenance_equipment_views.xml new file mode 100644 index 000000000..013c3fe21 --- /dev/null +++ b/maintenance_equipment_image/views/maintenance_equipment_views.xml @@ -0,0 +1,40 @@ + + + + + maintenance.equipment.form.image + maintenance.equipment + + + + + + + + + + maintenance.equipment.kanban.image + maintenance.equipment + + + + + + +
+ Equipment +
+
+
+
+ +