diff --git a/base_repair/README.rst b/base_repair/README.rst new file mode 100644 index 000000000..891b29513 --- /dev/null +++ b/base_repair/README.rst @@ -0,0 +1,104 @@ +=========== +Base Repair +=========== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fmanufacture-lightgray.png?logo=github + :target: https://github.com/OCA/manufacture/tree/13.0/base_repair + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-13-0/manufacture-13-0-base_repair + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/129/13.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module extends the functionality of Odoo Repair module to add some basic features that are standard in other Odoo apps: + +* Includes Repair Date field and adds it to the form +* Includes Repair Duration field and adds it to the form +* Includes Responsible User field and adds it to the form +* Includes repair order search by Responsible User +* Includes grouping by Responsible User +* Includes grouping by Repair Date +* Implements Calendar view +* Implements PivotTable view + +**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 +~~~~~~~ + +* Escodoo +* Agile Business Group + +Contributors +~~~~~~~~~~~~ + +* Marcel Savegnago +* Nicola Malcontenti +* Alessio Gerace +* Alex Comba +* Carlos Jimeno +* María Asunción Daza + +Other credits +~~~~~~~~~~~~~ + +The development of this module has been financially supported by: + +* Escodoo +* Agile Business Group + +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-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px + :target: https://github.com/marcelsavegnago + :alt: marcelsavegnago + +Current `maintainer `__: + +|maintainer-marcelsavegnago| + +This module is part of the `OCA/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_repair/__init__.py b/base_repair/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/base_repair/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/base_repair/__manifest__.py b/base_repair/__manifest__.py new file mode 100644 index 000000000..b5050e483 --- /dev/null +++ b/base_repair/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2021 - TODAY, Escodoo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Base Repair", + "summary": """ + This module extends the functionality of Odoo Repair module + to add some basic features.""", + "version": "13.0.1.0.0", + "license": "AGPL-3", + "author": "Escodoo, Agile Business Group, Odoo Community Association (OCA)", + "maintainers": ["marcelsavegnago"], + "images": ["static/description/banner.png"], + "website": "https://github.com/oca/manufacture", + "category": "Manufacturing", + "depends": ["repair"], + "data": ["views/repair_order.xml"], + "installable": True, +} diff --git a/base_repair/i18n/base_repair.pot b/base_repair/i18n/base_repair.pot new file mode 100644 index 000000000..3ce9c1d36 --- /dev/null +++ b/base_repair/i18n/base_repair.pot @@ -0,0 +1,66 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.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: base_repair +#: model:ir.model.fields,help:base_repair.field_repair_order__date_repair +msgid "Date of the repair, this field and user_id defines the calendar" +msgstr "" + +#. module: base_repair +#: model:ir.model.fields,help:base_repair.field_repair_order__duration +msgid "Duration in hours and minutes." +msgstr "" + +#. module: base_repair +#: model:ir.model.fields,help:base_repair.field_repair_order__user_id +msgid "Person in charge for the repair" +msgstr "" + +#. module: base_repair +#: model:ir.model.fields,field_description:base_repair.field_repair_order__date_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_search +msgid "Repair Date" +msgstr "" + +#. module: base_repair +#: model:ir.model.fields,field_description:base_repair.field_repair_order__duration +msgid "Repair Duration" +msgstr "" + +#. module: base_repair +#: model:ir.model,name:base_repair.model_repair_order +msgid "Repair Order" +msgstr "" + +#. module: base_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_pivot +msgid "Repair Orders" +msgstr "" + +#. module: base_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_calendar +msgid "Repair Orders Calendar" +msgstr "" + +#. module: base_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_search +msgid "Responsible User" +msgstr "" + +#. module: base_repair +#: model:ir.model.fields,field_description:base_repair.field_repair_order__user_id +msgid "User" +msgstr "" + diff --git a/base_repair/i18n/pt_BR.po b/base_repair/i18n/pt_BR.po new file mode 100644 index 000000000..7266bd836 --- /dev/null +++ b/base_repair/i18n/pt_BR.po @@ -0,0 +1,65 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 13.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2021-02-03 07:04+0000\n" +"PO-Revision-Date: 2021-02-03 04:04-0300\n" +"Language-Team: \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 2.4.1\n" +"Last-Translator: Marcel Savegnago \n" +"Language: pt_BR\n" + +#. module: base_repair +#: model:ir.model.fields,help:base_repair.field_repair_order__date_repair +msgid "Date of the repair, this field and user_id defines the calendar" +msgstr "Data do reparo, este campo e user_id define o calendário" + +#. module: base_repair +#: model:ir.model.fields,help:base_repair.field_repair_order__duration +msgid "Duration in hours and minutes." +msgstr "Duração em horas e minutos." + +#. module: base_repair +#: model:ir.model.fields,help:base_repair.field_repair_order__user_id +msgid "Person in charge for the repair" +msgstr "Responsável pelo reparo" + +#. module: base_repair +#: model:ir.model.fields,field_description:base_repair.field_repair_order__date_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_search +msgid "Repair Date" +msgstr "Data do Reparo" + +#. module: base_repair +#: model:ir.model.fields,field_description:base_repair.field_repair_order__duration +msgid "Repair Duration" +msgstr "Duração do Reparo" + +#. module: base_repair +#: model:ir.model,name:base_repair.model_repair_order +msgid "Repair Order" +msgstr "Ordem de Reparo" + +#. module: base_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_pivot +msgid "Repair Orders" +msgstr "Ordens de Reparo" + +#. module: base_repair +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_calendar +msgid "Repair Orders Calendar" +msgstr "Calendário de Pedidos de Reparo" + +#. module: base_repair +#: model:ir.model.fields,field_description:base_repair.field_repair_order__user_id +#: model_terms:ir.ui.view,arch_db:base_repair.view_repair_order_search +msgid "Responsible User" +msgstr "Usuário Responsável" diff --git a/base_repair/models/__init__.py b/base_repair/models/__init__.py new file mode 100644 index 000000000..2251f67dd --- /dev/null +++ b/base_repair/models/__init__.py @@ -0,0 +1 @@ +from . import repair_order diff --git a/base_repair/models/repair_order.py b/base_repair/models/repair_order.py new file mode 100644 index 000000000..6e5b69baa --- /dev/null +++ b/base_repair/models/repair_order.py @@ -0,0 +1,25 @@ +# Copyright 2021 - TODAY, Marcel Savegnago - Escodoo +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class RepairOrder(models.Model): + + _inherit = "repair.order" + + user_id = fields.Many2one( + "res.users", + "User", + default=lambda self: self.env.user, + help="Person in charge for the repair", + ) + + date_repair = fields.Datetime( + "Repair Date", + default=fields.Datetime.now, + copy=False, + help="Date of the repair, this field " "and user_id defines the calendar", + ) + + duration = fields.Float("Repair Duration", help="Duration in hours and minutes.") diff --git a/base_repair/readme/CONTRIBUTORS.rst b/base_repair/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..060367682 --- /dev/null +++ b/base_repair/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* Marcel Savegnago +* Nicola Malcontenti +* Alessio Gerace +* Alex Comba +* Carlos Jimeno +* María Asunción Daza diff --git a/base_repair/readme/CREDITS.rst b/base_repair/readme/CREDITS.rst new file mode 100644 index 000000000..6d81a670f --- /dev/null +++ b/base_repair/readme/CREDITS.rst @@ -0,0 +1,4 @@ +The development of this module has been financially supported by: + +* Escodoo +* Agile Business Group diff --git a/base_repair/readme/DESCRIPTION.rst b/base_repair/readme/DESCRIPTION.rst new file mode 100644 index 000000000..49fd7c72a --- /dev/null +++ b/base_repair/readme/DESCRIPTION.rst @@ -0,0 +1,10 @@ +This module extends the functionality of Odoo Repair module to add some basic features that are standard in other Odoo apps: + +* Includes Repair Date field and adds it to the form +* Includes Repair Duration field and adds it to the form +* Includes Responsible User field and adds it to the form +* Includes repair order search by Responsible User +* Includes grouping by Responsible User +* Includes grouping by Repair Date +* Implements Calendar view +* Implements PivotTable view diff --git a/base_repair/static/description/banner.png b/base_repair/static/description/banner.png new file mode 100644 index 000000000..da4f6de2a Binary files /dev/null and b/base_repair/static/description/banner.png differ diff --git a/base_repair/static/description/icon.png b/base_repair/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_repair/static/description/icon.png differ diff --git a/base_repair/static/description/index.html b/base_repair/static/description/index.html new file mode 100644 index 000000000..79c7248d6 --- /dev/null +++ b/base_repair/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +Base Repair + + + +
+

Base Repair

+ + +

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

+

This module extends the functionality of Odoo Repair module to add some basic features that are standard in other Odoo apps:

+
    +
  • Includes Repair Date field and adds it to the form
  • +
  • Includes Repair Duration field and adds it to the form
  • +
  • Includes Responsible User field and adds it to the form
  • +
  • Includes repair order search by Responsible User
  • +
  • Includes grouping by Responsible User
  • +
  • Includes grouping by Repair Date
  • +
  • Implements Calendar view
  • +
  • Implements PivotTable view
  • +
+

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

+
    +
  • Escodoo
  • +
  • Agile Business Group
  • +
+
+
+

Contributors

+ +
+
+

Other credits

+

The development of this module has been financially supported by:

+ +
+
+

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:

+

marcelsavegnago

+

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

+

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

+
+
+
+ + diff --git a/base_repair/views/repair_order.xml b/base_repair/views/repair_order.xml new file mode 100644 index 000000000..fc6c27656 --- /dev/null +++ b/base_repair/views/repair_order.xml @@ -0,0 +1,59 @@ + + + + + repair.calendar.form (in base_repair) + repair.order + + + + + + + + + + + + + repair.order.search (in base_repair) + repair.order + + + + + + + + + + + + + repair.order.calendar (in base_repair) + repair.order + + + + + + + + + tree,kanban,graph,pivot,calendar,form + + diff --git a/setup/base_repair/odoo/addons/base_repair b/setup/base_repair/odoo/addons/base_repair new file mode 120000 index 000000000..e25bfc2f4 --- /dev/null +++ b/setup/base_repair/odoo/addons/base_repair @@ -0,0 +1 @@ +../../../../base_repair \ No newline at end of file diff --git a/setup/base_repair/setup.py b/setup/base_repair/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/base_repair/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)