diff --git a/maintenance_equipment_sequence/README.rst b/maintenance_equipment_sequence/README.rst new file mode 100644 index 000000000..398090b9a --- /dev/null +++ b/maintenance_equipment_sequence/README.rst @@ -0,0 +1,83 @@ +============================== +Maintenance Equipment Sequence +============================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/15.0/maintenance_equipment_sequence + :alt: OCA/maintenance +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/maintenance-15-0/maintenance-15-0-maintenance_equipment_sequence + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/240/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module introduces a sequence to the maintenance equipment managed from the maintenance equipment category + +**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 smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* ForgeFlow S.L. + +Contributors +~~~~~~~~~~~~ + +* Adria Gil Sorribes +* Núria Martín Xifré +* Bernat Puig Font + +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-AdriaGForgeFlow| image:: https://github.com/AdriaGForgeFlow.png?size=40px + :target: https://github.com/AdriaGForgeFlow + :alt: AdriaGForgeFlow + +Current `maintainer `__: + +|maintainer-AdriaGForgeFlow| + +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_sequence/__init__.py b/maintenance_equipment_sequence/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/maintenance_equipment_sequence/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/maintenance_equipment_sequence/__manifest__.py b/maintenance_equipment_sequence/__manifest__.py new file mode 100644 index 000000000..99c8538b0 --- /dev/null +++ b/maintenance_equipment_sequence/__manifest__.py @@ -0,0 +1,16 @@ +# Copyright 2021 ForgeFlow S.L. (https://forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Maintenance Equipment Sequence", + "summary": """ + Adds sequence to maintenance equipment defined in the equipment's + category""", + "version": "16.0.1.0.0", + "license": "AGPL-3", + "author": "ForgeFlow S.L.," "Odoo Community Association (OCA)", + "maintainers": ["AdriaGForgeFlow"], + "website": "https://github.com/OCA/maintenance", + "depends": ["maintenance"], + "data": ["views/maintenance_views.xml"], +} diff --git a/maintenance_equipment_sequence/i18n/es.po b/maintenance_equipment_sequence/i18n/es.po new file mode 100644 index 000000000..c10d7edc2 --- /dev/null +++ b/maintenance_equipment_sequence/i18n/es.po @@ -0,0 +1,75 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-11-20 14:35+0000\n" +"Last-Translator: Jaime Arroyo \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 3.8\n" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment__code +msgid "Code" +msgstr "Código" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_id +msgid "Entry Sequence" +msgstr "Secuencia" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment__code +msgid "Equipment Code" +msgstr "Código del Equipamiento" + +#. module: maintenance_equipment_sequence +#: model:ir.model,name:maintenance_equipment_sequence.model_maintenance_equipment +#, fuzzy +msgid "Maintenance Equipment" +msgstr "Equipamiento" + +#. module: maintenance_equipment_sequence +#: model:ir.model,name:maintenance_equipment_sequence.model_maintenance_equipment_category +msgid "Maintenance Equipment Category" +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_number_next +msgid "Next Number" +msgstr "Número siguiente" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_prefix +msgid "Sequence Prefix" +msgstr "Prefijo de la secuencia" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_prefix +msgid "The equipment's sequence will be created using this prefix." +msgstr "La secuencia de este equipamiento se creará usando este prefijo." + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_number_next +msgid "The next sequence number will be used for the next equipment." +msgstr "Este campo se utilizará para el siguiente código de equipamiento." + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_id +msgid "" +"This field contains the information related to the numbering of the " +"equipments belonging to this category." +msgstr "" +"Este campo contiene la información relacionada con la numeración de los " +"equipamientos de esta categoría." + +#~ msgid "Asset Category" +#~ msgstr "Categoría del activo" diff --git a/maintenance_equipment_sequence/i18n/it.po b/maintenance_equipment_sequence/i18n/it.po new file mode 100644 index 000000000..fe7b7b042 --- /dev/null +++ b/maintenance_equipment_sequence/i18n/it.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-07-28 09:49+0000\n" +"Last-Translator: mymage \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.3.2\n" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment__code +msgid "Code" +msgstr "Codice" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_id +msgid "Entry Sequence" +msgstr "Sequenza iniziale" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment__code +msgid "Equipment Code" +msgstr "Codice attrezzatura" + +#. module: maintenance_equipment_sequence +#: model:ir.model,name:maintenance_equipment_sequence.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "Attrezzatura manutenzione" + +#. module: maintenance_equipment_sequence +#: model:ir.model,name:maintenance_equipment_sequence.model_maintenance_equipment_category +msgid "Maintenance Equipment Category" +msgstr "Categoria attrezzatura menutenzione" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_number_next +msgid "Next Number" +msgstr "Numero successivo" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_prefix +msgid "Sequence Prefix" +msgstr "Prefisso sequenza" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_prefix +msgid "The equipment's sequence will be created using this prefix." +msgstr "La sequenza dell'attrezzatura verrà creata utilizzando questo prefisso." + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_number_next +msgid "The next sequence number will be used for the next equipment." +msgstr "" +"Il numero di sequenza successivo verrà utilizzato per la prossima " +"attrezzatura." + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_id +msgid "" +"This field contains the information related to the numbering of the " +"equipments belonging to this category." +msgstr "" +"Questo campo contiene l'informazione relativa alla numerazione delle " +"attrezzature appartenenti a questa categoria." diff --git a/maintenance_equipment_sequence/i18n/maintenance_equipment_sequence.pot b/maintenance_equipment_sequence/i18n/maintenance_equipment_sequence.pot new file mode 100644 index 000000000..9a7478b5b --- /dev/null +++ b/maintenance_equipment_sequence/i18n/maintenance_equipment_sequence.pot @@ -0,0 +1,56 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * maintenance_equipment_sequence +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 15.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_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_id +msgid "Entry Sequence" +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model,name:maintenance_equipment_sequence.model_maintenance_equipment +msgid "Maintenance Equipment" +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model,name:maintenance_equipment_sequence.model_maintenance_equipment_category +msgid "Maintenance Equipment Category" +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_number_next +msgid "Next Number" +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,field_description:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_prefix +msgid "Sequence Prefix" +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_prefix +msgid "The equipment's sequence will be created using this prefix." +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_number_next +msgid "The next sequence number will be used for the next equipment." +msgstr "" + +#. module: maintenance_equipment_sequence +#: model:ir.model.fields,help:maintenance_equipment_sequence.field_maintenance_equipment_category__sequence_id +msgid "" +"This field contains the information related to the numbering of the " +"equipments belonging to this category." +msgstr "" diff --git a/maintenance_equipment_sequence/models/__init__.py b/maintenance_equipment_sequence/models/__init__.py new file mode 100644 index 000000000..12bf298f8 --- /dev/null +++ b/maintenance_equipment_sequence/models/__init__.py @@ -0,0 +1 @@ +from . import maintenance diff --git a/maintenance_equipment_sequence/models/maintenance.py b/maintenance_equipment_sequence/models/maintenance.py new file mode 100644 index 000000000..c8348060f --- /dev/null +++ b/maintenance_equipment_sequence/models/maintenance.py @@ -0,0 +1,128 @@ +# Copyright 2021 ForgeFlow S.L. (https://forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import api, fields, models + + +class MaintenanceEquipmentCategory(models.Model): + _inherit = "maintenance.equipment.category" + + sequence_prefix = fields.Char( + help="The equipment's sequence will be created using this prefix.", + ) + sequence_id = fields.Many2one( + "ir.sequence", + string="Entry Sequence", + help="This field contains the information related to the " + "numbering of the equipments belonging to this category.", + copy=False, + ) + sequence_number_next = fields.Integer( + string="Next Number", + help="The next sequence number will be used for the next equipment.", + compute="_compute_seq_number_next", + inverse="_inverse_seq_number_next", + ) + + @api.model + def _create_sequence(self, vals): + """Create new no_gap entry sequence""" + seq = { + "name": vals.get("name", False) or self.name, + "implementation": "no_gap", + "prefix": (vals.get("sequence_prefix", False) or self.sequence_prefix), + "padding": 4, + "number_increment": 1, + "use_date_range": False, + } + seq = self.env["ir.sequence"].create(seq) + seq_date_range = seq._get_current_sequence() + seq_date_range.number_next = vals.get("sequence_number_next", 1) + return seq + + # do not depend on 'sequence_id.date_range_ids', because + # sequence_id._get_current_sequence() may invalidate it! + @api.depends("sequence_id.use_date_range", "sequence_id.number_next_actual") + def _compute_seq_number_next(self): + """Compute 'sequence_number_next' according to the current sequence + in use, an ir.sequence or an ir.sequence.date_range. + """ + for category in self: + if category.sequence_id: + sequence = category.sequence_id._get_current_sequence() + category.sequence_number_next = sequence.number_next_actual + else: + category.sequence_number_next = 1 + + def _inverse_seq_number_next(self): + """ + Inverse 'sequence_number_next' to edit the current sequence next number + """ + for category in self: + if category.sequence_id and category.sequence_number_next: + sequence = category.sequence_id._get_current_sequence() + sequence.sudo().number_next = category.sequence_number_next + + @api.model + def create(self, vals): + if not vals.get("sequence_id", False): + if vals.get("sequence_prefix", False): + vals["sequence_id"] = self.sudo()._create_sequence(vals).id + else: + vals["sequence_prefix"] = ( + self.env["ir.sequence"].browse(vals["sequence_id"]).prefix + ) + result = super(MaintenanceEquipmentCategory, self).create(vals) + self._compute_equipment_code() + return result + + def write(self, vals): + if not vals.get("sequence_id", False): + if vals.get("sequence_prefix", False): + vals["sequence_id"] = self.sudo()._create_sequence(vals).id + else: + vals["sequence_prefix"] = ( + self.env["ir.sequence"].browse(vals["sequence_id"]).prefix + ) + result = super(MaintenanceEquipmentCategory, self).write(vals) + self._compute_equipment_code() + return result + + @api.onchange("sequence_id") + def _onchange_sequence_id(self): + if self.sequence_id: + self.sequence_prefix = self.sequence_id.prefix + + def _compute_equipment_code(self): + for category in self: + if category.sequence_id: + category_equipments = category.env["maintenance.equipment"].search( + [("category_id", "=", category.id)] + ) + for equipment in category_equipments: + if not equipment.serial_no and equipment.category_id.sequence_id: + equipment.serial_no = equipment.category_id.sequence_id._next() + + +class MaintenanceEquipment(models.Model): + _inherit = "maintenance.equipment" + + @api.model + def create(self, vals): + equipment = super(MaintenanceEquipment, self).create(vals) + if equipment.category_id and not equipment.serial_no: + sequence_id = ( + self.env["maintenance.equipment.category"] + .browse(vals["category_id"]) + .sequence_id + ) + if sequence_id: + equipment.serial_no = sequence_id._next() + return equipment + + def write(self, vals): + result = super(MaintenanceEquipment, self).write(vals) + for rec in self: + if rec.category_id and not rec.serial_no and rec.category_id.sequence_id: + rec.serial_no = rec.category_id.sequence_id._next() + return result diff --git a/maintenance_equipment_sequence/readme/CONTRIBUTORS.rst b/maintenance_equipment_sequence/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..011fc6908 --- /dev/null +++ b/maintenance_equipment_sequence/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Adria Gil Sorribes +* Núria Martín Xifré +* Bernat Puig Font diff --git a/maintenance_equipment_sequence/readme/DESCRIPTION.rst b/maintenance_equipment_sequence/readme/DESCRIPTION.rst new file mode 100644 index 000000000..2b4832241 --- /dev/null +++ b/maintenance_equipment_sequence/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module introduces a sequence to the maintenance equipment managed from the maintenance equipment category diff --git a/maintenance_equipment_sequence/static/description/icon.png b/maintenance_equipment_sequence/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/maintenance_equipment_sequence/static/description/icon.png differ diff --git a/maintenance_equipment_sequence/static/description/index.html b/maintenance_equipment_sequence/static/description/index.html new file mode 100644 index 000000000..e67c5e21a --- /dev/null +++ b/maintenance_equipment_sequence/static/description/index.html @@ -0,0 +1,423 @@ + + + + + + +Maintenance Equipment Sequence + + + +
+

Maintenance Equipment Sequence

+ + +

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

+

This module introduces a sequence to the maintenance equipment managed from the maintenance equipment category

+

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 smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • ForgeFlow S.L.
  • +
+
+
+

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:

+

AdriaGForgeFlow

+

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_sequence/tests/__init__.py b/maintenance_equipment_sequence/tests/__init__.py new file mode 100644 index 000000000..10d0722fb --- /dev/null +++ b/maintenance_equipment_sequence/tests/__init__.py @@ -0,0 +1 @@ +from . import test_maintenance_equipment_sequence diff --git a/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py b/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py new file mode 100644 index 000000000..176cf5a33 --- /dev/null +++ b/maintenance_equipment_sequence/tests/test_maintenance_equipment_sequence.py @@ -0,0 +1,61 @@ +# Copyright 2020 ForgeFlow S.L. (https://forgeflow.com) +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo.tests.common import TransactionCase + + +class TestMaintenanceEquipmentSequence(TransactionCase): + def setUp(self): + super(TestMaintenanceEquipmentSequence, self).setUp() + self.maintenance_equipment_categ_obj = self.env[ + "maintenance.equipment.category" + ] + self.maintenance_equipment_obj = self.env["maintenance.equipment"] + self.sequence_obj = self.env["ir.sequence"] + + def test_01_maintenance_equipment_sequence(self): + """Create equipment category and check sequence has been + automatically created, create equipments inside category and check + sequence number has been set + """ + # Create category + categ_1 = self.maintenance_equipment_categ_obj.create( + { + "name": "Test Category", + "sequence_prefix": "TTC", + "sequence_number_next": 1, + } + ) + seq_1 = self.sequence_obj.search( + [("name", "=", categ_1.name), ("prefix", "=", "TTC")], limit=1 + ) + self.assertEqual(seq_1.prefix, categ_1.sequence_prefix) + self.assertEqual(seq_1.number_next_actual, categ_1.sequence_number_next) + + # Create category without sequence, then write prefix and number next + categ_2 = self.maintenance_equipment_categ_obj.create( + {"name": "Test Category 2"} + ) + categ_2.write({"sequence_prefix": "TTC2", "sequence_number_next": 100}) + seq_2 = self.sequence_obj.search( + [("name", "=", categ_2.name), ("prefix", "=", "TTC2")], limit=1 + ) + self.assertEqual(seq_2.prefix, categ_2.sequence_prefix) + self.assertEqual(seq_2.number_next_actual, categ_2.sequence_number_next) + + # Assign sequence 1 to category 2 + categ_2.write({"sequence_id": seq_1.id}) + categ_2._onchange_sequence_id() + + # Create equipment inside category + equipment_1 = self.maintenance_equipment_obj.create( + {"name": "Laptop 1", "category_id": categ_2.id} + ) + categ_2._compute_equipment_code() + self.assertEqual(equipment_1.serial_no, "TTC0001") + # Set code manually + equipment_1.write({"serial_no": "TTC0023"}) + self.assertEqual(equipment_1.serial_no, "TTC0023") + # Remove code and be automatically set to sequence next value + equipment_1.write({"serial_no": False}) + self.assertEqual(equipment_1.serial_no, "TTC0002") diff --git a/maintenance_equipment_sequence/views/maintenance_views.xml b/maintenance_equipment_sequence/views/maintenance_views.xml new file mode 100644 index 000000000..71c204546 --- /dev/null +++ b/maintenance_equipment_sequence/views/maintenance_views.xml @@ -0,0 +1,63 @@ + + + + + equipment.category.form + maintenance.equipment.category + + + + + + + + + + + + + + equipment.form + maintenance.equipment + + 99 + + + 1 + + + + + + + equipment.tree + maintenance.equipment + + + + + + + + + equipment.search + maintenance.equipment + + + + + + + + diff --git a/setup/maintenance_equipment_sequence/odoo/addons/maintenance_equipment_sequence b/setup/maintenance_equipment_sequence/odoo/addons/maintenance_equipment_sequence new file mode 120000 index 000000000..67aeb19c2 --- /dev/null +++ b/setup/maintenance_equipment_sequence/odoo/addons/maintenance_equipment_sequence @@ -0,0 +1 @@ +../../../../maintenance_equipment_sequence \ No newline at end of file diff --git a/setup/maintenance_equipment_sequence/setup.py b/setup/maintenance_equipment_sequence/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/maintenance_equipment_sequence/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)