diff --git a/maintenance_equipment_custom_info/README.rst b/maintenance_equipment_custom_info/README.rst new file mode 100644 index 000000000..ff4a46e19 --- /dev/null +++ b/maintenance_equipment_custom_info/README.rst @@ -0,0 +1,76 @@ +================================= +Maintenance Equipment Custom Info +================================= + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:b140b6e30bb5c945cb83da0ec843e1706e40e27faa4aa132a1fdf2d5754563d3 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/14.0/maintenance_equipment_custom_info + :alt: OCA/maintenance +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/maintenance-14-0/maintenance-14-0-maintenance_equipment_custom_info + :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=14.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This modul allows to use Custom Info on 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 +~~~~~~~ + +* Dixmit + +Contributors +~~~~~~~~~~~~ + +* Enric Tobella + +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/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_custom_info/__init__.py b/maintenance_equipment_custom_info/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/maintenance_equipment_custom_info/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/maintenance_equipment_custom_info/__manifest__.py b/maintenance_equipment_custom_info/__manifest__.py new file mode 100644 index 000000000..0f4c26ba0 --- /dev/null +++ b/maintenance_equipment_custom_info/__manifest__.py @@ -0,0 +1,14 @@ +# Copyright 2020 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Maintenance Equipment Custom Info", + "summary": """ + Add Custom Info on Maintenance Equipments""", + "version": "14.0.1.0.0", + "license": "AGPL-3", + "author": "Dixmit,Odoo Community Association (OCA)", + "website": "https://github.com/OCA/maintenance", + "depends": ["base_custom_info", "maintenance"], + "data": ["views/maintenance_equipment.xml"], +} diff --git a/maintenance_equipment_custom_info/models/__init__.py b/maintenance_equipment_custom_info/models/__init__.py new file mode 100644 index 000000000..e960c415c --- /dev/null +++ b/maintenance_equipment_custom_info/models/__init__.py @@ -0,0 +1 @@ +from . import maintenance_equipment diff --git a/maintenance_equipment_custom_info/models/maintenance_equipment.py b/maintenance_equipment_custom_info/models/maintenance_equipment.py new file mode 100644 index 000000000..5f7bd042c --- /dev/null +++ b/maintenance_equipment_custom_info/models/maintenance_equipment.py @@ -0,0 +1,17 @@ +# Copyright 2020 Creu Blanca +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class MaintenanceEquipment(models.Model): + + _name = "maintenance.equipment" + _inherit = ["maintenance.equipment", "custom.info"] + + custom_info_template_id = fields.Many2one( + context={"default_model": "maintenance.equipment"} + ) + custom_info_ids = fields.One2many( + context={"default_model": "maintenance.equipment"} + ) diff --git a/maintenance_equipment_custom_info/readme/CONTRIBUTORS.rst b/maintenance_equipment_custom_info/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..85004765b --- /dev/null +++ b/maintenance_equipment_custom_info/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Enric Tobella diff --git a/maintenance_equipment_custom_info/readme/DESCRIPTION.rst b/maintenance_equipment_custom_info/readme/DESCRIPTION.rst new file mode 100644 index 000000000..1a3c55804 --- /dev/null +++ b/maintenance_equipment_custom_info/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This modul allows to use Custom Info on Maintenance Equipments. diff --git a/maintenance_equipment_custom_info/static/description/icon.png b/maintenance_equipment_custom_info/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/maintenance_equipment_custom_info/static/description/icon.png differ diff --git a/maintenance_equipment_custom_info/static/description/index.html b/maintenance_equipment_custom_info/static/description/index.html new file mode 100644 index 000000000..0c0d5ea06 --- /dev/null +++ b/maintenance_equipment_custom_info/static/description/index.html @@ -0,0 +1,421 @@ + + + + + + +Maintenance Equipment Custom Info + + + +
+

Maintenance Equipment Custom Info

+ + +

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

+

This modul allows to use Custom Info on 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

+
    +
  • Dixmit
  • +
+
+
+

Contributors

+
    +
  • Enric Tobella
  • +
+
+
+

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.

+

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_custom_info/views/maintenance_equipment.xml b/maintenance_equipment_custom_info/views/maintenance_equipment.xml new file mode 100644 index 000000000..99eb2c5cb --- /dev/null +++ b/maintenance_equipment_custom_info/views/maintenance_equipment.xml @@ -0,0 +1,31 @@ + + + + + maintenance.equipment.form (in maintenance_equipment_custom_info) + maintenance.equipment + + + + + + + + + + + + + diff --git a/setup/maintenance_equipment_custom_info/odoo/addons/maintenance_equipment_custom_info b/setup/maintenance_equipment_custom_info/odoo/addons/maintenance_equipment_custom_info new file mode 120000 index 000000000..b15d74737 --- /dev/null +++ b/setup/maintenance_equipment_custom_info/odoo/addons/maintenance_equipment_custom_info @@ -0,0 +1 @@ +../../../../maintenance_equipment_custom_info \ No newline at end of file diff --git a/setup/maintenance_equipment_custom_info/setup.py b/setup/maintenance_equipment_custom_info/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/maintenance_equipment_custom_info/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)