From 0cc7705c33397cb6b127789f37cbefb539fa139f Mon Sep 17 00:00:00 2001 From: Bernat Puig Font Date: Mon, 11 Oct 2021 11:16:10 +0200 Subject: [PATCH 01/45] [14.0][ADD] repair_type --- repair_type/__init__.py | 1 + repair_type/__manifest__.py | 21 +++ repair_type/models/__init__.py | 2 + repair_type/models/repair.py | 71 ++++++++ repair_type/models/repair_type.py | 41 +++++ repair_type/readme/CONFIGURE.rst | 1 + repair_type/readme/CONTRIBUTORS.rst | 3 + repair_type/readme/DESCRIPTION.rst | 1 + repair_type/readme/ROADMAP.rst | 5 + repair_type/readme/USAGE.rst | 1 + repair_type/security/ir.model.access.csv | 2 + repair_type/tests/__init__.py | 4 + repair_type/tests/test_repair_type.py | 199 +++++++++++++++++++++++ repair_type/views/repair.xml | 13 ++ repair_type/views/repair_type.xml | 59 +++++++ 15 files changed, 424 insertions(+) create mode 100644 repair_type/__init__.py create mode 100644 repair_type/__manifest__.py create mode 100644 repair_type/models/__init__.py create mode 100644 repair_type/models/repair.py create mode 100644 repair_type/models/repair_type.py create mode 100644 repair_type/readme/CONFIGURE.rst create mode 100644 repair_type/readme/CONTRIBUTORS.rst create mode 100644 repair_type/readme/DESCRIPTION.rst create mode 100644 repair_type/readme/ROADMAP.rst create mode 100644 repair_type/readme/USAGE.rst create mode 100644 repair_type/security/ir.model.access.csv create mode 100644 repair_type/tests/__init__.py create mode 100644 repair_type/tests/test_repair_type.py create mode 100644 repair_type/views/repair.xml create mode 100644 repair_type/views/repair_type.xml diff --git a/repair_type/__init__.py b/repair_type/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/repair_type/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py new file mode 100644 index 00000000..16feec45 --- /dev/null +++ b/repair_type/__manifest__.py @@ -0,0 +1,21 @@ +# Copyright 2021 ForgeFlow S.L. +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + +{ + "name": "Repair Type", + "version": "14.0.1.0.0", + "author": "ForgeFlow, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/manufacture", + "summary": "Repair type", + "category": "Repair", + "depends": ["repair"], + "data": [ + "views/repair.xml", + "views/repair_type.xml", + "security/ir.model.access.csv", + ], + "installable": True, + "development_status": "Alpha", + "license": "AGPL-3", + "application": False, +} diff --git a/repair_type/models/__init__.py b/repair_type/models/__init__.py new file mode 100644 index 00000000..67781506 --- /dev/null +++ b/repair_type/models/__init__.py @@ -0,0 +1,2 @@ +from . import repair +from . import repair_type diff --git a/repair_type/models/repair.py b/repair_type/models/repair.py new file mode 100644 index 00000000..17c3c14e --- /dev/null +++ b/repair_type/models/repair.py @@ -0,0 +1,71 @@ +# Copyright (C) 2021 ForgeFlow S.L. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from odoo import api, fields, models + + +class Repair(models.Model): + _inherit = "repair.order" + + repair_type_id = fields.Many2one(comodel_name="repair.type") + location_id = fields.Many2one( + compute="_compute_location_id", store=True, readonly=False + ) + + @api.depends("repair_type_id") + def _compute_location_id(self): + for rec in self: + if rec.repair_type_id.source_location_id: + rec.location_id = rec.repair_type_id.source_location_id + + +class RepairLine(models.Model): + _inherit = "repair.line" + + location_id = fields.Many2one( + compute="_compute_location_id", store=True, readonly=False + ) + location_dest_id = fields.Many2one( + compute="_compute_location_id", store=True, readonly=False + ) + + @api.depends("type", "repair_id.repair_type_id") + def _compute_location_id(self): + for rec in self: + if ( + rec.type == "add" + and rec.repair_id.repair_type_id.source_location_add_part_id + ): + rec.location_id = ( + rec.repair_id.repair_type_id.source_location_add_part_id + ) + if ( + rec.type == "add" + and rec.repair_id.repair_type_id.destination_location_add_part_id + ): + rec.location_dest_id = ( + rec.repair_id.repair_type_id.destination_location_add_part_id + ) + if ( + rec.type == "remove" + and rec.repair_id.repair_type_id.source_location_remove_part_id + ): + rec.location_id = ( + rec.repair_id.repair_type_id.source_location_remove_part_id + ) + if ( + rec.type == "remove" + and rec.repair_id.repair_type_id.destination_location_remove_part_id + ): + rec.location_dest_id = ( + rec.repair_id.repair_type_id.destination_location_remove_part_id + ) + + @api.onchange("type") + def onchange_operation_type(self): + # this onchange was overriding the changes from the compute + # method `_compute_location_id`, we ensure that the locations + # in the types have more priority by explicit calling the compute. + res = super().onchange_operation_type() + self._compute_location_id() + return res diff --git a/repair_type/models/repair_type.py b/repair_type/models/repair_type.py new file mode 100644 index 00000000..31829848 --- /dev/null +++ b/repair_type/models/repair_type.py @@ -0,0 +1,41 @@ +# Copyright (C) 2021 ForgeFlow S.L. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from odoo import fields, models + + +class RepairType(models.Model): + _name = "repair.type" + _description = "Repair Type" + + name = fields.Char("Repair Type Name", copy=False, required=True) + source_location_id = fields.Many2one( + "stock.location", + "Source Location", + help="This is the location where the product to repair is located.", + ) + destination_location_id = fields.Many2one( + "stock.location", + "Destination Location", + help="This is the location where the product repaired will be located.", + ) + source_location_add_part_id = fields.Many2one( + "stock.location", + "Source Location Add Component", + help="This is the location where the part of the product to add is located.", + ) + destination_location_add_part_id = fields.Many2one( + "stock.location", + "Destination Location Add Component", + help="This is the location where the part of the product to add is located.", + ) + source_location_remove_part_id = fields.Many2one( + "stock.location", + "Source Location Remove Component", + help="This is the location where the part of the product to remove is located.", + ) + destination_location_remove_part_id = fields.Many2one( + "stock.location", + "Destination Location Remove Component", + help="This is the location where the part of the product to remove is located.", + ) diff --git a/repair_type/readme/CONFIGURE.rst b/repair_type/readme/CONFIGURE.rst new file mode 100644 index 00000000..029bb402 --- /dev/null +++ b/repair_type/readme/CONFIGURE.rst @@ -0,0 +1 @@ +No configuration needed for this module. diff --git a/repair_type/readme/CONTRIBUTORS.rst b/repair_type/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..be287126 --- /dev/null +++ b/repair_type/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* `ForgeFlow `_: + + * Bernat Puig diff --git a/repair_type/readme/DESCRIPTION.rst b/repair_type/readme/DESCRIPTION.rst new file mode 100644 index 00000000..f84b78a7 --- /dev/null +++ b/repair_type/readme/DESCRIPTION.rst @@ -0,0 +1 @@ +This module adds the type to a repair order. If we select a type on a Repair Order, Odoo will automatically fill some fields of the order. diff --git a/repair_type/readme/ROADMAP.rst b/repair_type/readme/ROADMAP.rst new file mode 100644 index 00000000..15259cfc --- /dev/null +++ b/repair_type/readme/ROADMAP.rst @@ -0,0 +1,5 @@ +Possible improvements for future versions: + +* Destination Location of the product to repair is not used currently, + so that's why is invisible. We still save the field for future new + module implementations. diff --git a/repair_type/readme/USAGE.rst b/repair_type/readme/USAGE.rst new file mode 100644 index 00000000..f5c98f6f --- /dev/null +++ b/repair_type/readme/USAGE.rst @@ -0,0 +1 @@ +Go to Configuration>Repair Types and create a new repair type. Afterwards selecting a type on a Repair Order will automatically fill some fields. diff --git a/repair_type/security/ir.model.access.csv b/repair_type/security/ir.model.access.csv new file mode 100644 index 00000000..edf09352 --- /dev/null +++ b/repair_type/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +type_repair.stock_manager,type_repair.stock_manager,model_repair_type,stock.group_stock_manager,1,1,1,1 diff --git a/repair_type/tests/__init__.py b/repair_type/tests/__init__.py new file mode 100644 index 00000000..8e6b3334 --- /dev/null +++ b/repair_type/tests/__init__.py @@ -0,0 +1,4 @@ +# Copyright (C) 2021 ForgeFlow S.L. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from . import test_repair_type diff --git a/repair_type/tests/test_repair_type.py b/repair_type/tests/test_repair_type.py new file mode 100644 index 00000000..a6f8e57d --- /dev/null +++ b/repair_type/tests/test_repair_type.py @@ -0,0 +1,199 @@ +# Copyright (C) 2021 ForgeFlow S.L. +# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) + +from odoo.tests.common import TransactionCase + + +class TestRepairType(TransactionCase): + def setUp(self, *args, **kwargs): + super(TestRepairType, self).setUp(*args, **kwargs) + + # First of all we create a repair to work with + self.repair_r1 = self.env.ref("repair.repair_r1") + + # Now we will create a location scrap for the destination location of removed components + stock_location_locations_virtual = self.env["stock.location"].create( + {"name": "Virtual Locations", "usage": "view", "posz": 1} + ) + self.scrapped_location = self.env["stock.location"].create( + { + "name": "Scrapped", + "location_id": stock_location_locations_virtual.id, + "scrap_location": True, + "usage": "inventory", + } + ) + + # Then, we create a repair type to know the source and destination locations + self.repair_type_1 = self.env["repair.type"].create( + { + "name": "Repairings Office 1", + "source_location_id": self.env.ref("stock.stock_location_stock").id, + "destination_location_id": self.env.ref( + "stock.stock_location_customers" + ).id, + "source_location_add_part_id": self.env.ref( + "stock.stock_location_components" + ).id, + "destination_location_add_part_id": self.env.ref( + "stock.stock_location_customers" + ).id, + "source_location_remove_part_id": self.env.ref( + "stock.stock_location_stock" + ).id, + "destination_location_remove_part_id": self.scrapped_location.id, + } + ) + self.repair_type_2 = self.env["repair.type"].create( + { + "name": "Repairings Office 2", + "source_location_id": self.env.ref( + "stock.stock_location_components" + ).id, + "destination_location_id": self.env.ref( + "stock.stock_location_stock" + ).id, + "source_location_add_part_id": self.env.ref( + "stock.location_refrigerator_small" + ).id, + "destination_location_add_part_id": self.env.ref( + "stock.stock_location_14" + ).id, + "source_location_remove_part_id": self.env.ref( + "stock.stock_location_stock" + ).id, + "destination_location_remove_part_id": self.scrapped_location.id, + } + ) + + # Finally we add two line components to the repair order, + # one adding a component and the other one removing + self.add_component = self.env["repair.line"].create( + { + "name": "Add Component 1", + "repair_id": 1, + "price_unit": 2.0, + "type": "add", + "product_id": self.env.ref("product.product_product_3").id, + "product_uom": self.env.ref("product.product_product_3").uom_id.id, + "product_uom_qty": 1.0, + "location_id": self.env.ref("stock.stock_location_14").id, + "location_dest_id": self.env.ref( + "product.product_product_3" + ).property_stock_production.id, + "company_id": self.env.company.id, + } + ) + self.remove_component = self.env["repair.line"].create( + { + "name": "Add Component 2", + "repair_id": 1, + "price_unit": 2.0, + "type": "remove", + "product_id": self.env.ref("product.product_product_11").id, + "product_uom": self.env.ref("product.product_product_11").uom_id.id, + "product_uom_qty": 1.0, + "location_id": self.env.ref("stock.stock_location_14").id, + "location_dest_id": self.env.ref( + "product.product_product_11" + ).property_stock_production.id, + "company_id": self.env.company.id, + } + ) + self.repair_r1.operations |= self.add_component + self.repair_r1.operations |= self.remove_component + + def test_compute_location_id(self): + # First we associate the repair with the repair type + self.repair_r1.repair_type_id = self.repair_type_1 + + # Afterwards we will assert the source and + # destination of the product in the repair order + self.assertEqual( + self.repair_r1.location_id, self.repair_type_1.source_location_id + ) + + # Next we assert if the source and destination locations of the components are correct + self.assertEqual( + self.repair_r1.operations[0].location_id, + self.repair_type_1.source_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[0].location_dest_id, + self.repair_type_1.destination_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[1].location_id, + self.repair_type_1.source_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[1].location_dest_id, + self.repair_type_1.destination_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[2].location_id, + self.repair_type_1.source_location_remove_part_id, + ) + self.assertEqual( + self.repair_r1.operations[2].location_dest_id, + self.repair_type_1.destination_location_remove_part_id, + ) + + # We change the repair type to repair_type_2 and check if all the locations changed + self.repair_r1.repair_type_id = self.repair_type_2 + + self.assertEqual( + self.repair_r1.location_id, self.repair_type_2.source_location_id + ) + + self.assertEqual( + self.repair_r1.operations[0].location_id, + self.repair_type_2.source_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[0].location_dest_id, + self.repair_type_2.destination_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[1].location_id, + self.repair_type_2.source_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[1].location_dest_id, + self.repair_type_2.destination_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[2].location_id, + self.repair_type_2.source_location_remove_part_id, + ) + self.assertEqual( + self.repair_r1.operations[2].location_dest_id, + self.repair_type_2.destination_location_remove_part_id, + ) + + def test_compute_location_id_2(self): + # First we will assert the source and destination + # of the component product in the repair order + self.repair_r1.repair_type_id = self.repair_type_1 + + self.assertEqual( + self.repair_r1.operations[0].location_id, + self.repair_type_1.source_location_add_part_id, + ) + self.assertEqual( + self.repair_r1.operations[0].location_dest_id, + self.repair_type_1.destination_location_add_part_id, + ) + + # Then we change the type of operation + self.repair_r1.operations[0].type = "remove" + + # And finally we assert that the locations of that operation changed + self.assertEqual( + self.repair_r1.operations[0].location_id, + self.repair_type_1.source_location_remove_part_id, + ) + self.assertEqual( + self.repair_r1.operations[0].location_dest_id, + self.repair_type_1.destination_location_remove_part_id, + ) diff --git a/repair_type/views/repair.xml b/repair_type/views/repair.xml new file mode 100644 index 00000000..a23e7dfe --- /dev/null +++ b/repair_type/views/repair.xml @@ -0,0 +1,13 @@ + + + + repair.type.inherit + repair.order + + + + + + + + diff --git a/repair_type/views/repair_type.xml b/repair_type/views/repair_type.xml new file mode 100644 index 00000000..6feeb122 --- /dev/null +++ b/repair_type/views/repair_type.xml @@ -0,0 +1,59 @@ + + + + Repair Types + repair.type + tree,form + + + + + + Repair Types Form + repair.type + +
+ + +
+
+
+ + + Repair Types List + repair.type + + + + + + + + + + + + +
From 8e2d1199625d882638880792f8d784fbb3e48ec1 Mon Sep 17 00:00:00 2001 From: oca-travis Date: Fri, 12 Nov 2021 09:46:57 +0000 Subject: [PATCH 02/45] [UPD] Update repair_type.pot --- repair_type/i18n/repair_type.pot | 152 +++++++++++++++++++++++++++++++ 1 file changed, 152 insertions(+) create mode 100644 repair_type/i18n/repair_type.pot diff --git a/repair_type/i18n/repair_type.pot b/repair_type/i18n/repair_type.pot new file mode 100644 index 00000000..7d0f4d40 --- /dev/null +++ b/repair_type/i18n/repair_type.pot @@ -0,0 +1,152 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * repair_type +# +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: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__create_uid +msgid "Created by" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__create_date +msgid "Created on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__location_dest_id +msgid "Dest. Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_id +msgid "Destination Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id +msgid "Destination Location Add Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_remove_part_id +msgid "Destination Location Remove Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name +#: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name +#: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name +msgid "Display Name" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__id +#: model:ir.model.fields,field_description:repair_type.field_repair_order__id +#: model:ir.model.fields,field_description:repair_type.field_repair_type__id +msgid "ID" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update +#: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update +#: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update +msgid "Last Modified on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__write_date +msgid "Last Updated on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_order__location_id +msgid "Location" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_line +msgid "Repair Line (parts)" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_order +msgid "Repair Order" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_order__repair_type_id +msgid "Repair Type" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__name +msgid "Repair Type Name" +msgstr "" + +#. module: repair_type +#: model:ir.actions.act_window,name:repair_type.repair_type_action +#: model:ir.ui.menu,name:repair_type.repair_type_menu +msgid "Repair Types" +msgstr "" + +#. module: repair_type +#: model_terms:ir.ui.view,arch_db:repair_type.repair_type_view_form +msgid "Repair types" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__location_id +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_id +msgid "Source Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_add_part_id +msgid "Source Location Add Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_remove_part_id +msgid "Source Location Remove Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_add_part_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_add_part_id +msgid "This is the location where the part of the product to add is located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_remove_part_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_remove_part_id +msgid "" +"This is the location where the part of the product to remove is located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_id +msgid "This is the location where the product repaired will be located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_order__location_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_id +msgid "This is the location where the product to repair is located." +msgstr "" From b90a3c370255e627ca6953cb27a5bcc303194c7f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 12 Nov 2021 10:02:23 +0000 Subject: [PATCH 03/45] [UPD] README.rst --- repair_type/README.rst | 99 +++++ repair_type/static/description/index.html | 451 ++++++++++++++++++++++ 2 files changed, 550 insertions(+) create mode 100644 repair_type/README.rst create mode 100644 repair_type/static/description/index.html diff --git a/repair_type/README.rst b/repair_type/README.rst new file mode 100644 index 00000000..064ba8ea --- /dev/null +++ b/repair_type/README.rst @@ -0,0 +1,99 @@ +=========== +Repair Type +=========== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png + :target: https://odoo-community.org/page/development-status + :alt: Alpha +.. |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/14.0/repair_type + :alt: OCA/manufacture +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-repair_type + :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/14.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the type to a repair order. If we select a type on a Repair Order, Odoo will automatically fill some fields of the order. + +.. IMPORTANT:: + This is an alpha version, the data model and design can change at any time without warning. + Only for development or testing purpose, do not use in production. + `More details on development status `_ + +**Table of contents** + +.. contents:: + :local: + +Configuration +============= + +No configuration needed for this module. + +Usage +===== + +Go to Configuration>Repair Types and create a new repair type. Afterwards selecting a type on a Repair Order will automatically fill some fields. + +Known issues / Roadmap +====================== + +Possible improvements for future versions: + +* Destination Location of the product to repair is not used currently, + so that's why is invisible. We still save the field for future new + module implementations. + +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 + +Contributors +~~~~~~~~~~~~ + +* `ForgeFlow `_: + + * Bernat Puig + +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/manufacture `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/repair_type/static/description/index.html b/repair_type/static/description/index.html new file mode 100644 index 00000000..12d98398 --- /dev/null +++ b/repair_type/static/description/index.html @@ -0,0 +1,451 @@ + + + + + + +Repair Type + + + +
+

Repair Type

+ + +

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

+

This module adds the type to a repair order. If we select a type on a Repair Order, Odoo will automatically fill some fields of the order.

+
+

Important

+

This is an alpha version, the data model and design can change at any time without warning. +Only for development or testing purpose, do not use in production. +More details on development status

+
+

Table of contents

+ +
+

Configuration

+

No configuration needed for this module.

+
+
+

Usage

+

Go to Configuration>Repair Types and create a new repair type. Afterwards selecting a type on a Repair Order will automatically fill some fields.

+
+
+

Known issues / Roadmap

+

Possible improvements for future versions:

+
    +
  • Destination Location of the product to repair is not used currently, +so that’s why is invisible. We still save the field for future new +module implementations.
  • +
+
+
+

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
  • +
+
+
+

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.

+

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.

+
+
+
+ + From 7f5baad5584144e5bec5700bf6774f538e9f7416 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 12 Nov 2021 10:02:23 +0000 Subject: [PATCH 04/45] [ADD] icon.png --- repair_type/static/description/icon.png | Bin 0 -> 9455 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 repair_type/static/description/icon.png diff --git a/repair_type/static/description/icon.png b/repair_type/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}d0jUxM@u(PQx^-s)697TX`ehR4?GS^qbkof1cslKgkU)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w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##AB0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 From 55fbb619c6c8756540ce90a9386ec876a2e6b84c Mon Sep 17 00:00:00 2001 From: Bernat Puig Font Date: Fri, 13 May 2022 15:28:19 +0200 Subject: [PATCH 05/45] [14.0][FIX] repair_type: Fix stock user permissions for repair type model --- repair_type/security/ir.model.access.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/repair_type/security/ir.model.access.csv b/repair_type/security/ir.model.access.csv index edf09352..a909a2b5 100644 --- a/repair_type/security/ir.model.access.csv +++ b/repair_type/security/ir.model.access.csv @@ -1,2 +1,3 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink type_repair.stock_manager,type_repair.stock_manager,model_repair_type,stock.group_stock_manager,1,1,1,1 +type_repair.stock_user,type_repair.stock_user,model_repair_type,stock.group_stock_user,1,0,0,0 From 261c5ff85e4cbfc4ef3954b1848d3b6478e667a9 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 16 May 2022 14:37:49 +0000 Subject: [PATCH 06/45] repair_type 14.0.1.0.1 --- repair_type/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py index 16feec45..44f70c6a 100644 --- a/repair_type/__manifest__.py +++ b/repair_type/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Repair Type", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/manufacture", "summary": "Repair type", From 3022c5ac38c814627d017c2a24ba70a3432dcd30 Mon Sep 17 00:00:00 2001 From: Jordi Ballester Date: Thu, 4 Aug 2022 07:35:15 +0200 Subject: [PATCH 07/45] [FIX] repair_type: remove destination location for finished product The destination location was removed from the repair since 12.0. --- repair_type/models/repair_type.py | 5 ----- repair_type/tests/test_repair_type.py | 6 ------ repair_type/views/repair_type.xml | 2 -- 3 files changed, 13 deletions(-) diff --git a/repair_type/models/repair_type.py b/repair_type/models/repair_type.py index 31829848..e7b97631 100644 --- a/repair_type/models/repair_type.py +++ b/repair_type/models/repair_type.py @@ -14,11 +14,6 @@ class RepairType(models.Model): "Source Location", help="This is the location where the product to repair is located.", ) - destination_location_id = fields.Many2one( - "stock.location", - "Destination Location", - help="This is the location where the product repaired will be located.", - ) source_location_add_part_id = fields.Many2one( "stock.location", "Source Location Add Component", diff --git a/repair_type/tests/test_repair_type.py b/repair_type/tests/test_repair_type.py index a6f8e57d..19e8d9e0 100644 --- a/repair_type/tests/test_repair_type.py +++ b/repair_type/tests/test_repair_type.py @@ -29,9 +29,6 @@ def setUp(self, *args, **kwargs): { "name": "Repairings Office 1", "source_location_id": self.env.ref("stock.stock_location_stock").id, - "destination_location_id": self.env.ref( - "stock.stock_location_customers" - ).id, "source_location_add_part_id": self.env.ref( "stock.stock_location_components" ).id, @@ -50,9 +47,6 @@ def setUp(self, *args, **kwargs): "source_location_id": self.env.ref( "stock.stock_location_components" ).id, - "destination_location_id": self.env.ref( - "stock.stock_location_stock" - ).id, "source_location_add_part_id": self.env.ref( "stock.location_refrigerator_small" ).id, diff --git a/repair_type/views/repair_type.xml b/repair_type/views/repair_type.xml index 6feeb122..dd164e8b 100644 --- a/repair_type/views/repair_type.xml +++ b/repair_type/views/repair_type.xml @@ -27,7 +27,6 @@ - @@ -48,7 +47,6 @@ - From fd4f00c50dd9c64b51534dff4e1d0b5e2e9b2fd8 Mon Sep 17 00:00:00 2001 From: Bole Date: Mon, 22 Aug 2022 11:37:40 +0000 Subject: [PATCH 08/45] Added translation using Weblate (Croatian) --- repair_type/i18n/hr.po | 154 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 repair_type/i18n/hr.po diff --git a/repair_type/i18n/hr.po b/repair_type/i18n/hr.po new file mode 100644 index 00000000..e9c4c666 --- /dev/null +++ b/repair_type/i18n/hr.po @@ -0,0 +1,154 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * repair_type +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" +"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__create_uid +msgid "Created by" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__create_date +msgid "Created on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__location_dest_id +msgid "Dest. Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_id +msgid "Destination Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id +msgid "Destination Location Add Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_remove_part_id +msgid "Destination Location Remove Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name +#: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name +#: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name +msgid "Display Name" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__id +#: model:ir.model.fields,field_description:repair_type.field_repair_order__id +#: model:ir.model.fields,field_description:repair_type.field_repair_type__id +msgid "ID" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update +#: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update +#: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update +msgid "Last Modified on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__write_date +msgid "Last Updated on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_order__location_id +msgid "Location" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_line +msgid "Repair Line (parts)" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_order +msgid "Repair Order" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_order__repair_type_id +msgid "Repair Type" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__name +msgid "Repair Type Name" +msgstr "" + +#. module: repair_type +#: model:ir.actions.act_window,name:repair_type.repair_type_action +#: model:ir.ui.menu,name:repair_type.repair_type_menu +msgid "Repair Types" +msgstr "" + +#. module: repair_type +#: model_terms:ir.ui.view,arch_db:repair_type.repair_type_view_form +msgid "Repair types" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__location_id +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_id +msgid "Source Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_add_part_id +msgid "Source Location Add Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_remove_part_id +msgid "Source Location Remove Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_add_part_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_add_part_id +msgid "This is the location where the part of the product to add is located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_remove_part_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_remove_part_id +msgid "" +"This is the location where the part of the product to remove is located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_id +msgid "This is the location where the product repaired will be located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_order__location_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_id +msgid "This is the location where the product to repair is located." +msgstr "" From 5f6fe6042ce4af7242d2c2d6f4447e2414a2c75e Mon Sep 17 00:00:00 2001 From: Bole Date: Mon, 22 Aug 2022 11:40:56 +0000 Subject: [PATCH 09/45] Translated using Weblate (Croatian) Currently translated at 72.0% (18 of 25 strings) Translation: manufacture-14.0/manufacture-14.0-repair_type Translate-URL: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-repair_type/hr/ --- repair_type/i18n/hr.po | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/repair_type/i18n/hr.po b/repair_type/i18n/hr.po index e9c4c666..1d6944a8 100644 --- a/repair_type/i18n/hr.po +++ b/repair_type/i18n/hr.po @@ -6,7 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2022-08-22 14:07+0000\n" +"Last-Translator: Bole \n" "Language-Team: none\n" "Language: hr\n" "MIME-Version: 1.0\n" @@ -14,62 +15,63 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"X-Generator: Weblate 4.3.2\n" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__create_uid msgid "Created by" -msgstr "" +msgstr "Kreirao" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__create_date msgid "Created on" -msgstr "" +msgstr "Kreirano" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__location_dest_id msgid "Dest. Location" -msgstr "" +msgstr "Odredišna lokacija" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_id msgid "Destination Location" -msgstr "" +msgstr "Odredišna lokacija" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id msgid "Destination Location Add Component" -msgstr "" +msgstr "Dodaj komponentu na odredišnu lokaciju" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_remove_part_id msgid "Destination Location Remove Component" -msgstr "" +msgstr "Ukloni komponentu sa odredišne lokacije" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name msgid "Display Name" -msgstr "" +msgstr "Naziv" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__id #: model:ir.model.fields,field_description:repair_type.field_repair_order__id #: model:ir.model.fields,field_description:repair_type.field_repair_type__id msgid "ID" -msgstr "" +msgstr "ID" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update msgid "Last Modified on" -msgstr "" +msgstr "Zadnje modificirano" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Zadnje ažurirano" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__write_date @@ -79,45 +81,45 @@ msgstr "" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_order__location_id msgid "Location" -msgstr "" +msgstr "Lokacija" #. module: repair_type #: model:ir.model,name:repair_type.model_repair_line msgid "Repair Line (parts)" -msgstr "" +msgstr "Stavka popravka (dijelovi)" #. module: repair_type #: model:ir.model,name:repair_type.model_repair_order msgid "Repair Order" -msgstr "" +msgstr "Nalog za popravak" #. module: repair_type #: model:ir.model,name:repair_type.model_repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_order__repair_type_id msgid "Repair Type" -msgstr "" +msgstr "Vrsta popravka" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__name msgid "Repair Type Name" -msgstr "" +msgstr "Naziv vrste popravka" #. module: repair_type #: model:ir.actions.act_window,name:repair_type.repair_type_action #: model:ir.ui.menu,name:repair_type.repair_type_menu msgid "Repair Types" -msgstr "" +msgstr "Vrste popravaka" #. module: repair_type #: model_terms:ir.ui.view,arch_db:repair_type.repair_type_view_form msgid "Repair types" -msgstr "" +msgstr "Vrste popravaka" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__location_id #: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_id msgid "Source Location" -msgstr "" +msgstr "Izvorišna lokacija" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_add_part_id From 3e56ef692ec83e0717aa422d9480597f665e5a5a Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 23 Sep 2022 11:05:48 +0000 Subject: [PATCH 10/45] [UPD] Update repair_type.pot --- repair_type/i18n/repair_type.pot | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/repair_type/i18n/repair_type.pot b/repair_type/i18n/repair_type.pot index 7d0f4d40..a48c9067 100644 --- a/repair_type/i18n/repair_type.pot +++ b/repair_type/i18n/repair_type.pot @@ -28,11 +28,6 @@ msgstr "" msgid "Dest. Location" msgstr "" -#. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_id -msgid "Destination Location" -msgstr "" - #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id msgid "Destination Location Add Component" @@ -140,11 +135,6 @@ msgid "" "This is the location where the part of the product to remove is located." msgstr "" -#. module: repair_type -#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_id -msgid "This is the location where the product repaired will be located." -msgstr "" - #. module: repair_type #: model:ir.model.fields,help:repair_type.field_repair_order__location_id #: model:ir.model.fields,help:repair_type.field_repair_type__source_location_id From 3ae0877ce3fc70bb2b8fcec48ead6565a6878006 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 23 Sep 2022 11:12:39 +0000 Subject: [PATCH 11/45] repair_type 14.0.1.0.2 --- repair_type/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py index 44f70c6a..448f1581 100644 --- a/repair_type/__manifest__.py +++ b/repair_type/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Repair Type", - "version": "14.0.1.0.1", + "version": "14.0.1.0.2", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/manufacture", "summary": "Repair type", From 55884924a5a6d9ecd268dce9b95cb4c6508628b1 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Fri, 23 Sep 2022 11:13:01 +0000 Subject: [PATCH 12/45] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: manufacture-14.0/manufacture-14.0-repair_type Translate-URL: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-repair_type/ --- repair_type/i18n/hr.po | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/repair_type/i18n/hr.po b/repair_type/i18n/hr.po index 1d6944a8..9d8d3ff4 100644 --- a/repair_type/i18n/hr.po +++ b/repair_type/i18n/hr.po @@ -32,11 +32,6 @@ msgstr "Kreirano" msgid "Dest. Location" msgstr "Odredišna lokacija" -#. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_id -msgid "Destination Location" -msgstr "Odredišna lokacija" - #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id msgid "Destination Location Add Component" @@ -144,13 +139,11 @@ msgid "" "This is the location where the part of the product to remove is located." msgstr "" -#. module: repair_type -#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_id -msgid "This is the location where the product repaired will be located." -msgstr "" - #. module: repair_type #: model:ir.model.fields,help:repair_type.field_repair_order__location_id #: model:ir.model.fields,help:repair_type.field_repair_type__source_location_id msgid "This is the location where the product to repair is located." msgstr "" + +#~ msgid "Destination Location" +#~ msgstr "Odredišna lokacija" From 7a100497ded6768e4b29c51d4775b2bc6d8a955c Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 22 Dec 2022 13:03:00 +0000 Subject: [PATCH 13/45] Added translation using Weblate (Italian) --- repair_type/i18n/it.po | 143 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 repair_type/i18n/it.po diff --git a/repair_type/i18n/it.po b/repair_type/i18n/it.po new file mode 100644 index 00000000..29671ba3 --- /dev/null +++ b/repair_type/i18n/it.po @@ -0,0 +1,143 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * repair_type +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: Automatically generated\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" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__create_uid +msgid "Created by" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__create_date +msgid "Created on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__location_dest_id +msgid "Dest. Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id +msgid "Destination Location Add Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_remove_part_id +msgid "Destination Location Remove Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name +#: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name +#: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name +msgid "Display Name" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__id +#: model:ir.model.fields,field_description:repair_type.field_repair_order__id +#: model:ir.model.fields,field_description:repair_type.field_repair_type__id +msgid "ID" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update +#: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update +#: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update +msgid "Last Modified on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__write_uid +msgid "Last Updated by" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__write_date +msgid "Last Updated on" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_order__location_id +msgid "Location" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_line +msgid "Repair Line (parts)" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_order +msgid "Repair Order" +msgstr "" + +#. module: repair_type +#: model:ir.model,name:repair_type.model_repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_order__repair_type_id +msgid "Repair Type" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__name +msgid "Repair Type Name" +msgstr "" + +#. module: repair_type +#: model:ir.actions.act_window,name:repair_type.repair_type_action +#: model:ir.ui.menu,name:repair_type.repair_type_menu +msgid "Repair Types" +msgstr "" + +#. module: repair_type +#: model_terms:ir.ui.view,arch_db:repair_type.repair_type_view_form +msgid "Repair types" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_line__location_id +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_id +msgid "Source Location" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_add_part_id +msgid "Source Location Add Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_remove_part_id +msgid "Source Location Remove Component" +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_add_part_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_add_part_id +msgid "This is the location where the part of the product to add is located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_remove_part_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_remove_part_id +msgid "" +"This is the location where the part of the product to remove is located." +msgstr "" + +#. module: repair_type +#: model:ir.model.fields,help:repair_type.field_repair_order__location_id +#: model:ir.model.fields,help:repair_type.field_repair_type__source_location_id +msgid "This is the location where the product to repair is located." +msgstr "" From e8ec335abec778dff1ed51e16f5f37be60ea2f29 Mon Sep 17 00:00:00 2001 From: mymage Date: Thu, 22 Dec 2022 13:03:10 +0000 Subject: [PATCH 14/45] Translated using Weblate (Italian) Currently translated at 100.0% (23 of 23 strings) Translation: manufacture-14.0/manufacture-14.0-repair_type Translate-URL: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-repair_type/it/ --- repair_type/i18n/it.po | 48 +++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 22 deletions(-) diff --git a/repair_type/i18n/it.po b/repair_type/i18n/it.po index 29671ba3..0ec2eace 100644 --- a/repair_type/i18n/it.po +++ b/repair_type/i18n/it.po @@ -6,128 +6,131 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: Automatically generated\n" +"PO-Revision-Date: 2022-12-22 13:44+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.14.1\n" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__create_uid msgid "Created by" -msgstr "" +msgstr "Creato da" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__create_date msgid "Created on" -msgstr "" +msgstr "Creato il" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__location_dest_id msgid "Dest. Location" -msgstr "" +msgstr "Ubicazione dest." #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_add_part_id msgid "Destination Location Add Component" -msgstr "" +msgstr "Aggiungi componente ubicazione destinazione" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__destination_location_remove_part_id msgid "Destination Location Remove Component" -msgstr "" +msgstr "Rimuovi componente ubicazione destinazione" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name msgid "Display Name" -msgstr "" +msgstr "Nome visualizzato" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__id #: model:ir.model.fields,field_description:repair_type.field_repair_order__id #: model:ir.model.fields,field_description:repair_type.field_repair_type__id msgid "ID" -msgstr "" +msgstr "ID" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update msgid "Last Modified on" -msgstr "" +msgstr "Ultima modifica il" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__write_uid msgid "Last Updated by" -msgstr "" +msgstr "Ultimo aggiornamento di" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__write_date msgid "Last Updated on" -msgstr "" +msgstr "Ultimo aggiornamento il" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_order__location_id msgid "Location" -msgstr "" +msgstr "Ubicazione" #. module: repair_type #: model:ir.model,name:repair_type.model_repair_line msgid "Repair Line (parts)" -msgstr "" +msgstr "Riga riparazione (componenti)" #. module: repair_type #: model:ir.model,name:repair_type.model_repair_order msgid "Repair Order" -msgstr "" +msgstr "Ordine riparazione" #. module: repair_type #: model:ir.model,name:repair_type.model_repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_order__repair_type_id msgid "Repair Type" -msgstr "" +msgstr "Tipo riparazione" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__name msgid "Repair Type Name" -msgstr "" +msgstr "Nome tipo riparazione" #. module: repair_type #: model:ir.actions.act_window,name:repair_type.repair_type_action #: model:ir.ui.menu,name:repair_type.repair_type_menu msgid "Repair Types" -msgstr "" +msgstr "Tipi riparazione" #. module: repair_type #: model_terms:ir.ui.view,arch_db:repair_type.repair_type_view_form msgid "Repair types" -msgstr "" +msgstr "Tipi riparazione" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_line__location_id #: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_id msgid "Source Location" -msgstr "" +msgstr "Ubicazione origine" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_add_part_id msgid "Source Location Add Component" -msgstr "" +msgstr "Aggiungi componente ubicazione origine" #. module: repair_type #: model:ir.model.fields,field_description:repair_type.field_repair_type__source_location_remove_part_id msgid "Source Location Remove Component" -msgstr "" +msgstr "Rimuovi componente ubicazione origine" #. module: repair_type #: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_add_part_id #: model:ir.model.fields,help:repair_type.field_repair_type__source_location_add_part_id msgid "This is the location where the part of the product to add is located." msgstr "" +"Questa è l'ubicazione dove si trova il componenti del prodotto da aggiungere." #. module: repair_type #: model:ir.model.fields,help:repair_type.field_repair_type__destination_location_remove_part_id @@ -135,9 +138,10 @@ msgstr "" msgid "" "This is the location where the part of the product to remove is located." msgstr "" +"Questa è l'ubicazione dove si trava il componente del prodotto da rimuovere." #. module: repair_type #: model:ir.model.fields,help:repair_type.field_repair_order__location_id #: model:ir.model.fields,help:repair_type.field_repair_type__source_location_id msgid "This is the location where the product to repair is located." -msgstr "" +msgstr "Questa è l'ubicazione dove si trova il prodotto da riparare." From 90cd5caafcadc34415e175399a3c6f72babf670c Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Tue, 28 Feb 2023 12:49:41 +0100 Subject: [PATCH 15/45] [IMP] repair_type: black, isort, prettier --- repair_type/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py index 448f1581..adc770ea 100644 --- a/repair_type/__manifest__.py +++ b/repair_type/__manifest__.py @@ -5,7 +5,7 @@ "name": "Repair Type", "version": "14.0.1.0.2", "author": "ForgeFlow, Odoo Community Association (OCA)", - "website": "https://github.com/OCA/manufacture", + "website": "https://github.com/OCA/repair", "summary": "Repair type", "category": "Repair", "depends": ["repair"], From 4d17305a2b47727da85bd5b52d717cab075ba99b Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Tue, 28 Feb 2023 12:54:26 +0100 Subject: [PATCH 16/45] [MIG] repair_type: Migration to 15.0 --- repair_type/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py index adc770ea..5e9a4b97 100644 --- a/repair_type/__manifest__.py +++ b/repair_type/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Repair Type", - "version": "14.0.1.0.2", + "version": "15.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/repair", "summary": "Repair type", From 08f12eafe9e52008e5ca005235625e04eb994c3a Mon Sep 17 00:00:00 2001 From: DavidJForgeFlow Date: Tue, 28 Feb 2023 15:23:38 +0100 Subject: [PATCH 17/45] [MIG] repair_type: Migration to 16.0 --- repair_type/__manifest__.py | 2 +- repair_type/models/repair.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py index 5e9a4b97..a47379f6 100644 --- a/repair_type/__manifest__.py +++ b/repair_type/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Repair Type", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/repair", "summary": "Repair type", diff --git a/repair_type/models/repair.py b/repair_type/models/repair.py index 17c3c14e..ed08919d 100644 --- a/repair_type/models/repair.py +++ b/repair_type/models/repair.py @@ -14,9 +14,11 @@ class Repair(models.Model): @api.depends("repair_type_id") def _compute_location_id(self): + res = super()._compute_location_id() for rec in self: if rec.repair_type_id.source_location_id: rec.location_id = rec.repair_type_id.source_location_id + return res class RepairLine(models.Model): From 969fa1dbbe388af640f7bf5f34cdf63a4cdd0993 Mon Sep 17 00:00:00 2001 From: oca-ci Date: Fri, 28 Jul 2023 06:58:17 +0000 Subject: [PATCH 18/45] [UPD] Update repair_type.pot --- repair_type/i18n/repair_type.pot | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/repair_type/i18n/repair_type.pot b/repair_type/i18n/repair_type.pot index a48c9067..2e932303 100644 --- a/repair_type/i18n/repair_type.pot +++ b/repair_type/i18n/repair_type.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -39,22 +39,16 @@ msgid "Destination Location Remove Component" msgstr "" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name -#: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name msgid "Display Name" msgstr "" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line__id -#: model:ir.model.fields,field_description:repair_type.field_repair_order__id #: model:ir.model.fields,field_description:repair_type.field_repair_type__id msgid "ID" msgstr "" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update -#: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update msgid "Last Modified on" msgstr "" From 48a9966ad21bf9da0e45cb626e6dbf25d23397b6 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Fri, 28 Jul 2023 07:01:22 +0000 Subject: [PATCH 19/45] [UPD] README.rst --- repair_type/README.rst | 19 ++++++++----------- repair_type/static/description/index.html | 8 ++++---- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/repair_type/README.rst b/repair_type/README.rst index 064ba8ea..08bca1f7 100644 --- a/repair_type/README.rst +++ b/repair_type/README.rst @@ -13,17 +13,14 @@ Repair Type .. |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/14.0/repair_type - :alt: OCA/manufacture +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frepair-lightgray.png?logo=github + :target: https://github.com/OCA/repair/tree/16.0/repair_type + :alt: OCA/repair .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/manufacture-14-0/manufacture-14-0-repair_type + :target: https://translation.odoo-community.org/projects/repair-16-0/repair-16-0-repair_type :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/14.0 - :alt: Try me on Runbot -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| This module adds the type to a repair order. If we select a type on a Repair Order, Odoo will automatically fill some fields of the order. @@ -59,10 +56,10 @@ Possible improvements for future versions: Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. +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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -94,6 +91,6 @@ 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/manufacture `_ project on GitHub. +This module is part of the `OCA/repair `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/repair_type/static/description/index.html b/repair_type/static/description/index.html index 12d98398..b787068a 100644 --- a/repair_type/static/description/index.html +++ b/repair_type/static/description/index.html @@ -367,7 +367,7 @@

Repair Type

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

Alpha License: AGPL-3 OCA/repair Translate me on Weblate

This module adds the type to a repair order. If we select a type on a Repair Order, Odoo will automatically fill some fields of the order.

Important

@@ -409,10 +409,10 @@

Known issues / Roadmap

Bug Tracker

-

Bugs are tracked on GitHub Issues. +

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.

+feedback.

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

@@ -442,7 +442,7 @@

Maintainers

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/manufacture project on GitHub.

+

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

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

From 8641d11b4683b27ca9e99c717bbd84e1d94a1440 Mon Sep 17 00:00:00 2001 From: Weblate Date: Fri, 28 Jul 2023 10:52:04 +0000 Subject: [PATCH 20/45] Update translation files Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: repair-16.0/repair-16.0-repair_type Translate-URL: https://translation.odoo-community.org/projects/repair-16-0/repair-16-0-repair_type/ --- repair_type/i18n/hr.po | 6 ------ repair_type/i18n/it.po | 6 ------ 2 files changed, 12 deletions(-) diff --git a/repair_type/i18n/hr.po b/repair_type/i18n/hr.po index 9d8d3ff4..37af47a2 100644 --- a/repair_type/i18n/hr.po +++ b/repair_type/i18n/hr.po @@ -43,22 +43,16 @@ msgid "Destination Location Remove Component" msgstr "Ukloni komponentu sa odredišne lokacije" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name -#: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name msgid "Display Name" msgstr "Naziv" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line__id -#: model:ir.model.fields,field_description:repair_type.field_repair_order__id #: model:ir.model.fields,field_description:repair_type.field_repair_type__id msgid "ID" msgstr "ID" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update -#: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update msgid "Last Modified on" msgstr "Zadnje modificirano" diff --git a/repair_type/i18n/it.po b/repair_type/i18n/it.po index 0ec2eace..72e18f12 100644 --- a/repair_type/i18n/it.po +++ b/repair_type/i18n/it.po @@ -42,22 +42,16 @@ msgid "Destination Location Remove Component" msgstr "Rimuovi componente ubicazione destinazione" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line__display_name -#: model:ir.model.fields,field_description:repair_type.field_repair_order__display_name #: model:ir.model.fields,field_description:repair_type.field_repair_type__display_name msgid "Display Name" msgstr "Nome visualizzato" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line__id -#: model:ir.model.fields,field_description:repair_type.field_repair_order__id #: model:ir.model.fields,field_description:repair_type.field_repair_type__id msgid "ID" msgstr "ID" #. module: repair_type -#: model:ir.model.fields,field_description:repair_type.field_repair_line____last_update -#: model:ir.model.fields,field_description:repair_type.field_repair_order____last_update #: model:ir.model.fields,field_description:repair_type.field_repair_type____last_update msgid "Last Modified on" msgstr "Ultima modifica il" From 15c06e8effad6f260511d8dafc2278be5ea87fcb Mon Sep 17 00:00:00 2001 From: BernatPForgeFlow Date: Mon, 21 Aug 2023 09:54:05 +0200 Subject: [PATCH 21/45] [FIX] repair_type: Call super for location_id in Repair Line --- repair_type/models/repair.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repair_type/models/repair.py b/repair_type/models/repair.py index ed08919d..669ff824 100644 --- a/repair_type/models/repair.py +++ b/repair_type/models/repair.py @@ -33,6 +33,7 @@ class RepairLine(models.Model): @api.depends("type", "repair_id.repair_type_id") def _compute_location_id(self): + res = super()._compute_location_id() for rec in self: if ( rec.type == "add" @@ -62,6 +63,7 @@ def _compute_location_id(self): rec.location_dest_id = ( rec.repair_id.repair_type_id.destination_location_remove_part_id ) + return res @api.onchange("type") def onchange_operation_type(self): From 120cda92b7776a2a7b3f27787931c610be5a5790 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Sun, 3 Sep 2023 15:54:38 +0000 Subject: [PATCH 22/45] [UPD] README.rst --- repair_type/README.rst | 12 ++++-- repair_type/static/description/index.html | 46 ++++++++++++----------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/repair_type/README.rst b/repair_type/README.rst index 08bca1f7..c6e1240c 100644 --- a/repair_type/README.rst +++ b/repair_type/README.rst @@ -2,10 +2,13 @@ Repair Type =========== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:8653b6e9a162d7f79440e87b7c10a12da6765bfc945525ba87ba38ecc347cb40 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png :target: https://odoo-community.org/page/development-status @@ -19,8 +22,11 @@ Repair Type .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/repair-16-0/repair-16-0-repair_type :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/repair&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| +|badge1| |badge2| |badge3| |badge4| |badge5| This module adds the type to a repair order. If we select a type on a Repair Order, Odoo will automatically fill some fields of the order. @@ -58,7 +64,7 @@ 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 +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. diff --git a/repair_type/static/description/index.html b/repair_type/static/description/index.html index b787068a..d51357de 100644 --- a/repair_type/static/description/index.html +++ b/repair_type/static/description/index.html @@ -1,20 +1,20 @@ - + - + Repair Type -
-

Repair Type

+
+ + +Odoo Community Association + +
+

Repair Type

-

Alpha License: AGPL-3 OCA/repair Translate me on Weblate Try me on Runboat

+

Alpha License: AGPL-3 OCA/repair Translate me on Weblate Try me on Runboat

This module adds support for source locations when adding, removing, or recycling components. If you specify any of these types in a Repair Order, Odoo will automatically apply the corresponding locations from @@ -394,7 +399,7 @@

Repair Type

-

Usage

+

Usage

  • Set the stock picking type for repairs and define source locations for adding, removing and recycling components.
  • @@ -404,7 +409,7 @@

    Usage

-

Bug Tracker

+

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 @@ -412,15 +417,15 @@

Bug Tracker

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

-

Credits

+

Credits

-

Authors

+

Authors

  • ForgeFlow
-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -455,5 +460,6 @@

Maintainers

+
From f3070826606fbb375c93d445a28f2a79b71908af Mon Sep 17 00:00:00 2001 From: JasminSForgeFlow Date: Tue, 23 Dec 2025 12:10:38 +0000 Subject: [PATCH 45/45] [MIG] repair_type: Migration to 19.0 --- repair_type/README.rst | 10 +++---- repair_type/__manifest__.py | 2 +- repair_type/static/description/index.html | 6 ++-- repair_type/tests/test_repair_type.py | 36 +++++++++++++++-------- 4 files changed, 32 insertions(+), 22 deletions(-) diff --git a/repair_type/README.rst b/repair_type/README.rst index 0e2536e0..c4e378ad 100644 --- a/repair_type/README.rst +++ b/repair_type/README.rst @@ -21,13 +21,13 @@ Repair Type :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Frepair-lightgray.png?logo=github - :target: https://github.com/OCA/repair/tree/18.0/repair_type + :target: https://github.com/OCA/repair/tree/19.0/repair_type :alt: OCA/repair .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/repair-18-0/repair-18-0-repair_type + :target: https://translation.odoo-community.org/projects/repair-19-0/repair-19-0-repair_type :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/repair&target_branch=18.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/repair&target_branch=19.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -62,7 +62,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -101,6 +101,6 @@ 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/repair `_ project on GitHub. +This module is part of the `OCA/repair `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/repair_type/__manifest__.py b/repair_type/__manifest__.py index 4ca4da69..fa1096af 100644 --- a/repair_type/__manifest__.py +++ b/repair_type/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Repair Type", - "version": "18.0.1.0.1", + "version": "19.0.1.0.0", "author": "ForgeFlow, Odoo Community Association (OCA)", "website": "https://github.com/OCA/repair", "summary": "Repair type", diff --git a/repair_type/static/description/index.html b/repair_type/static/description/index.html index 14279054..a9389cd0 100644 --- a/repair_type/static/description/index.html +++ b/repair_type/static/description/index.html @@ -374,7 +374,7 @@

Repair Type

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:31bbf1efb67b14ab0a9a33dd9d3d662c0898d03f1e518cc82c2ca806f804bdb9 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Alpha License: AGPL-3 OCA/repair Translate me on Weblate Try me on Runboat

+

Alpha License: AGPL-3 OCA/repair Translate me on Weblate Try me on Runboat

This module adds support for source locations when adding, removing, or recycling components. If you specify any of these types in a Repair Order, Odoo will automatically apply the corresponding locations from @@ -413,7 +413,7 @@

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.

+feedback.

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

@@ -455,7 +455,7 @@

Maintainers

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/repair project on GitHub.

+

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

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

diff --git a/repair_type/tests/test_repair_type.py b/repair_type/tests/test_repair_type.py index aa235f29..800522ea 100644 --- a/repair_type/tests/test_repair_type.py +++ b/repair_type/tests/test_repair_type.py @@ -1,6 +1,7 @@ # Copyright (C) 2021 ForgeFlow S.L. # License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html) +from odoo import Command from odoo.tests.common import TransactionCase @@ -9,9 +10,21 @@ class TestRepairType(TransactionCase): def setUpClass(cls): super().setUpClass() cls.picking_type = cls.env.ref("repair.picking_type_warehouse0_repair") - cls.product_4 = cls.env.ref("product.product_product_4") - cls.product_3 = cls.env.ref("product.product_product_3") - cls.product_11 = cls.env.ref("product.product_product_11") + cls.product_1 = cls.env["product.product"].create( + { + "name": "Test Product 1", + } + ) + cls.product_2 = cls.env["product.product"].create( + { + "name": "Test Product 2", + } + ) + cls.product_3 = cls.env["product.product"].create( + { + "name": "Test Product 3", + } + ) cls.uom_unit = cls.env.ref("uom.product_uom_unit") cls.customer_location = cls.env.ref("stock.stock_location_customers") @@ -30,16 +43,13 @@ def _create_repair_order( "product_id": product_ref.id, "product_uom": self.uom_unit.id, "move_ids": [ - ( - 0, - 0, + Command.create( { - "name": f"{repair_line_type.capitalize()} Component", "repair_line_type": repair_line_type, "product_id": component_ref.id, "product_uom_qty": product_qty, - }, - ) + } + ), ], } ) @@ -55,7 +65,7 @@ def _test_repair_location( self._set_default_location(location_field, location_ref) repair = self._create_repair_order( self.picking_type, - self.product_4, + self.product_1, repair_line_type, product_qty, component_ref, @@ -71,7 +81,7 @@ def test_get_repair_locations_remove(self): repair_line_type="remove", location_field="default_remove_location_src_id", location_ref=self.customer_location, - component_ref=self.product_3, + component_ref=self.product_2, product_qty=3, ) @@ -80,7 +90,7 @@ def test_get_repair_locations_recycle(self): repair_line_type="recycle", location_field="default_recycle_location_src_id", location_ref=self.customer_location, - component_ref=self.product_11, + component_ref=self.product_3, product_qty=3, ) @@ -89,6 +99,6 @@ def test_get_repair_locations_add(self): repair_line_type="add", location_field="default_add_location_src_id", location_ref=self.customer_location, - component_ref=self.product_3, + component_ref=self.product_2, product_qty=5, )