diff --git a/agreement_repair/README.rst b/agreement_repair/README.rst new file mode 100644 index 00000000..726d84b1 --- /dev/null +++ b/agreement_repair/README.rst @@ -0,0 +1,120 @@ +================== +Agreement - Repair +================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:b06ffd44ac72e22a4459b576e5f2b3b08d563da0ff1348428cc339c1d31409c1 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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%2Fagreement-lightgray.png?logo=github + :target: https://github.com/OCA/agreement/tree/17.0/agreement_repair + :alt: OCA/agreement +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/agreement-17-0/agreement-17-0-agreement_repair + :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/agreement&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +Odoo Agreement App does not provide an easy way to access repair orders +related to an agreement. Some organizations needs to have a quick access +to repair orders to track the performance of an agreement. + +This module allows you to link a repair order to an agreement and adds a +smart button on the agreement to look at the list of related repair +orders. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +To use this module, you need to: + +- Go to Repair > Repair Orders +- Select or create a repair order and set the agreement +- Go to Agreement > Agreements +- Open the previous agreement +- Click on the smart button "Repairs" to see the list of related repair + orders + +Known issues / Roadmap +====================== + +The roadmap of the Agreement application is documented on +`Github `__. + +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 +------- + +* Open Source Integrators + +Contributors +------------ + +- Sandip Mangukiya +- Serpent Consulting Services Pvt. Ltd. +- Italo LOPES. + +Other credits +------------- + +The development of this module has been financially supported by: + +- Open Source Integrators + +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-smangukiya| image:: https://github.com/smangukiya.png?size=40px + :target: https://github.com/smangukiya + :alt: smangukiya +.. |maintainer-max3903| image:: https://github.com/max3903.png?size=40px + :target: https://github.com/max3903 + :alt: max3903 + +Current `maintainers `__: + +|maintainer-smangukiya| |maintainer-max3903| + +This module is part of the `OCA/agreement `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/agreement_repair/__init__.py b/agreement_repair/__init__.py new file mode 100644 index 00000000..1ae95437 --- /dev/null +++ b/agreement_repair/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import models diff --git a/agreement_repair/__manifest__.py b/agreement_repair/__manifest__.py new file mode 100644 index 00000000..bf7b0053 --- /dev/null +++ b/agreement_repair/__manifest__.py @@ -0,0 +1,26 @@ +# Copyright (C) 2021 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "Agreement - Repair", + "summary": "Link repair orders to an agreement", + "version": "17.0.1.0.0", + "category": "Contract", + "author": "Open Source Integrators, " "Odoo Community Association (OCA)", + "website": "https://github.com/OCA/agreement", + "depends": [ + "agreement", + "repair", + ], + "data": [ + "views/agreement_view.xml", + "views/repair_view.xml", + ], + "installable": True, + "license": "AGPL-3", + "development_status": "Beta", + "maintainers": [ + "smangukiya", + "max3903", + ], +} diff --git a/agreement_repair/i18n/agreement_repair.pot b/agreement_repair/i18n/agreement_repair.pot new file mode 100644 index 00000000..49ac2495 --- /dev/null +++ b/agreement_repair/i18n/agreement_repair.pot @@ -0,0 +1,70 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +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: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "" diff --git a/agreement_repair/i18n/de.po b/agreement_repair/i18n/de.po new file mode 100644 index 00000000..c6105734 --- /dev/null +++ b/agreement_repair/i18n/de.po @@ -0,0 +1,76 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-01-11 17:41+0000\n" +"Last-Translator: Maria Sparenberg \n" +"Language-Team: none\n" +"Language: de\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.3\n" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "# Reparaturaufträge" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "Reparaturaufträge" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "Vereinbarung" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "Reparaturaufträge anlegen" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "Reparaturauftrag" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "Reparaturaufträge" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "Dienstleistungsprofil" + +#~ msgid "agreement" +#~ msgstr "Vereinbarung" diff --git a/agreement_repair/i18n/es.po b/agreement_repair/i18n/es.po new file mode 100644 index 00000000..84617f1e --- /dev/null +++ b/agreement_repair/i18n/es.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-12-19 13:33+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: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "# Órdenes de Reparación" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "Órdenes de reparación" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "Acuerdo" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "Crear Órdenes de Reparación" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "ID (identificación)" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "Orden de Reparación" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "Órdenes de Reparación" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "Perfil de Servicio" diff --git a/agreement_repair/i18n/es_AR.po b/agreement_repair/i18n/es_AR.po new file mode 100644 index 00000000..09216355 --- /dev/null +++ b/agreement_repair/i18n/es_AR.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2022-02-06 20:59+0000\n" +"Last-Translator: Ignacio Buioli \n" +"Language-Team: none\n" +"Language: es_AR\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: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "# Órdenes de Reparación" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "Órdenes de Reparación" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "Acuerdo" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "Crear Órdenes de Reparación" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "ID" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "Orden de Reparación" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "Órdenes de Reparación" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "Perfil de Servicio" diff --git a/agreement_repair/i18n/pt.po b/agreement_repair/i18n/pt.po new file mode 100644 index 00000000..2ee7ac38 --- /dev/null +++ b/agreement_repair/i18n/pt.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2020-02-17 19:13+0000\n" +"Last-Translator: Pedro Castro Silva \n" +"Language-Team: none\n" +"Language: pt\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.10\n" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "# Ordens de Reparação" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "Ordens de Reparação" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "Acordo" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "Criar Ordens de Reparação" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "Ordem de Reparação" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "Ordens de Reparação" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "Perfil do Serviço" diff --git a/agreement_repair/i18n/pt_BR.po b/agreement_repair/i18n/pt_BR.po new file mode 100644 index 00000000..4a65b0eb --- /dev/null +++ b/agreement_repair/i18n/pt_BR.po @@ -0,0 +1,74 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2024-05-21 00:14+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: none\n" +"Language: pt_BR\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: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "# Ordens de Reparo" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "Ordens de Reparo" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "Acordo" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "Criar Ordens de Reparo" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "Exibir Nome" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "ID" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "Última Modificação Feita em" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "Ordem de Reparo" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "Ordens de Reparo" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "Perfil de Serviço" diff --git a/agreement_repair/i18n/zh_CN.po b/agreement_repair/i18n/zh_CN.po new file mode 100644 index 00000000..7b7ba257 --- /dev/null +++ b/agreement_repair/i18n/zh_CN.po @@ -0,0 +1,73 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * agreement_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 12.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2019-09-04 18:23+0000\n" +"Last-Translator: 黎伟杰 <674416404@qq.com>\n" +"Language-Team: none\n" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" +"X-Generator: Weblate 3.8\n" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__repair_count +msgid "# Repair Orders" +msgstr "维修单" + +#. module: agreement_repair +#: model_terms:ir.ui.view,arch_db:agreement_repair.partner_agreement_form_view_repair +msgid "Repair Orders" +msgstr "维修单" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_agreement +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__agreement_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_agreement +msgid "Agreement" +msgstr "协议" + +#. module: agreement_repair +#: model_terms:ir.actions.act_window,help:agreement_repair.action_mrp_repair_agreement_specific +msgid "Create Repair Orders" +msgstr "创建维修单" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__display_name +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__display_name +msgid "Display Name" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement__id +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__id +msgid "ID" +msgstr "" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_agreement____last_update +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order____last_update +msgid "Last Modified on" +msgstr "" + +#. module: agreement_repair +#: model:ir.model,name:agreement_repair.model_repair_order +msgid "Repair Order" +msgstr "维修单" + +#. module: agreement_repair +#: model:ir.actions.act_window,name:agreement_repair.action_mrp_repair_agreement_specific +msgid "Repair Orders" +msgstr "维修单" + +#. module: agreement_repair +#: model:ir.model.fields,field_description:agreement_repair.field_repair_order__serviceprofile_id +#: model_terms:ir.ui.view,arch_db:agreement_repair.view_repair_order_form_filter_agreement +msgid "Service Profile" +msgstr "服务资料" diff --git a/agreement_repair/models/__init__.py b/agreement_repair/models/__init__.py new file mode 100644 index 00000000..1ec569cf --- /dev/null +++ b/agreement_repair/models/__init__.py @@ -0,0 +1,5 @@ +# Copyright (C) 2021 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from . import repair +from . import agreement diff --git a/agreement_repair/models/agreement.py b/agreement_repair/models/agreement.py new file mode 100644 index 00000000..72284f79 --- /dev/null +++ b/agreement_repair/models/agreement.py @@ -0,0 +1,16 @@ +# Copyright (C) 2021 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class Agreement(models.Model): + _inherit = "agreement" + + repair_count = fields.Integer("# Repair Orders", compute="_compute_repair_count") + + def _compute_repair_count(self): + for ag_rec in self: + ag_rec.repair_count = self.env["repair.order"].search_count( + [("agreement_id", "in", ag_rec.ids)] + ) diff --git a/agreement_repair/models/repair.py b/agreement_repair/models/repair.py new file mode 100644 index 00000000..66573f83 --- /dev/null +++ b/agreement_repair/models/repair.py @@ -0,0 +1,10 @@ +# Copyright (C) 2021 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields, models + + +class Repair(models.Model): + _inherit = "repair.order" + + agreement_id = fields.Many2one("agreement", "Agreement") diff --git a/agreement_repair/pyproject.toml b/agreement_repair/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/agreement_repair/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/agreement_repair/readme/CONTRIBUTORS.md b/agreement_repair/readme/CONTRIBUTORS.md new file mode 100644 index 00000000..1baf2904 --- /dev/null +++ b/agreement_repair/readme/CONTRIBUTORS.md @@ -0,0 +1,3 @@ +- Sandip Mangukiya \<\> +- Serpent Consulting Services Pvt. Ltd. \<\> +- Italo LOPES. \<\> diff --git a/agreement_repair/readme/CREDITS.md b/agreement_repair/readme/CREDITS.md new file mode 100644 index 00000000..7e4827b0 --- /dev/null +++ b/agreement_repair/readme/CREDITS.md @@ -0,0 +1,3 @@ +The development of this module has been financially supported by: + +- Open Source Integrators \<\> diff --git a/agreement_repair/readme/DESCRIPTION.md b/agreement_repair/readme/DESCRIPTION.md new file mode 100644 index 00000000..57c87908 --- /dev/null +++ b/agreement_repair/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +Odoo Agreement App does not provide an easy way to access repair orders +related to an agreement. Some organizations needs to have a quick access +to repair orders to track the performance of an agreement. + +This module allows you to link a repair order to an agreement and adds a +smart button on the agreement to look at the list of related repair +orders. diff --git a/agreement_repair/readme/ROADMAP.md b/agreement_repair/readme/ROADMAP.md new file mode 100644 index 00000000..faaa7512 --- /dev/null +++ b/agreement_repair/readme/ROADMAP.md @@ -0,0 +1,2 @@ +The roadmap of the Agreement application is documented on +[Github](https://github.com/OCA/contract/issues). diff --git a/agreement_repair/readme/USAGE.md b/agreement_repair/readme/USAGE.md new file mode 100644 index 00000000..53f6b6bc --- /dev/null +++ b/agreement_repair/readme/USAGE.md @@ -0,0 +1,8 @@ +To use this module, you need to: + +- Go to Repair \> Repair Orders +- Select or create a repair order and set the agreement +- Go to Agreement \> Agreements +- Open the previous agreement +- Click on the smart button "Repairs" to see the list of related repair + orders diff --git a/agreement_repair/static/description/icon.png b/agreement_repair/static/description/icon.png new file mode 100644 index 00000000..a99cce6b Binary files /dev/null and b/agreement_repair/static/description/icon.png differ diff --git a/agreement_repair/static/description/index.html b/agreement_repair/static/description/index.html new file mode 100644 index 00000000..17fe8de5 --- /dev/null +++ b/agreement_repair/static/description/index.html @@ -0,0 +1,456 @@ + + + + + +Agreement - Repair + + + +
+

Agreement - Repair

+ + +

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

+

Odoo Agreement App does not provide an easy way to access repair orders +related to an agreement. Some organizations needs to have a quick access +to repair orders to track the performance of an agreement.

+

This module allows you to link a repair order to an agreement and adds a +smart button on the agreement to look at the list of related repair +orders.

+

Table of contents

+ +
+

Usage

+

To use this module, you need to:

+
    +
  • Go to Repair > Repair Orders
  • +
  • Select or create a repair order and set the agreement
  • +
  • Go to Agreement > Agreements
  • +
  • Open the previous agreement
  • +
  • Click on the smart button “Repairs” to see the list of related repair +orders
  • +
+
+
+

Known issues / Roadmap

+

The roadmap of the Agreement application is documented on +Github.

+
+
+

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

+
    +
  • Open Source Integrators
  • +
+
+
+

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 maintainers:

+

smangukiya max3903

+

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

+

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

+
+
+
+ + diff --git a/agreement_repair/tests/__init__.py b/agreement_repair/tests/__init__.py new file mode 100644 index 00000000..0e75ecb2 --- /dev/null +++ b/agreement_repair/tests/__init__.py @@ -0,0 +1,3 @@ +# License LGPLv3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html). + +from . import test_agreement_repair diff --git a/agreement_repair/tests/test_agreement_repair.py b/agreement_repair/tests/test_agreement_repair.py new file mode 100644 index 00000000..72aa9b0e --- /dev/null +++ b/agreement_repair/tests/test_agreement_repair.py @@ -0,0 +1,32 @@ +# Copyright (C) 2021 - TODAY, Open Source Integrators +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +import odoo.tests.common as common +from odoo import fields + + +class TestAgreementRepair(common.TransactionCase): + def setUp(self): + super().setUp() + + self.agreement_obj = self.env["agreement"] + self.agreement_type_id = self.env["agreement.type"].create( + {"name": "Test Agreement Type", "active": True} + ) + self.product = self.env.ref("product.product_product_8_product_template") + + def test_fieldservice_purchase(self): + agreement_vals = { + "name": "Test Agreement", + "agreement_type_id": self.agreement_type_id.id, + "code": "TestAgreement", + "start_date": fields.Date.today(), + "end_date": fields.Date.today(), + } + agreement = self.agreement_obj.create(agreement_vals) + + repair_rec = self.env.ref("repair.repair_r0") + repair_rec.write({"agreement_id": agreement.id}) + + agreement._compute_repair_count() + self.assertEqual(agreement.repair_count, 1, "Wrong no of Repair Orders Count!") diff --git a/agreement_repair/views/agreement_view.xml b/agreement_repair/views/agreement_view.xml new file mode 100644 index 00000000..41a7323f --- /dev/null +++ b/agreement_repair/views/agreement_view.xml @@ -0,0 +1,41 @@ + + + + + Repair Orders + ir.actions.act_window + repair.order + tree,form + [('agreement_id', '=', id)] + {'create': False, 'edit': False} + +

+ Create Repair Orders +

+
+
+ + + agreement.form.repair + agreement + + + + + + + + +
diff --git a/agreement_repair/views/repair_view.xml b/agreement_repair/views/repair_view.xml new file mode 100644 index 00000000..c01b234b --- /dev/null +++ b/agreement_repair/views/repair_view.xml @@ -0,0 +1,25 @@ + + + + + repair.order.form.agreement + repair.order + + + + + + + + + + + + + + + +