diff --git a/hr_stock_picking_create_repair/README.rst b/hr_stock_picking_create_repair/README.rst new file mode 100644 index 00000000..704970a3 --- /dev/null +++ b/hr_stock_picking_create_repair/README.rst @@ -0,0 +1,29 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +============================== +Hr Stock picking create repair +============================== + +* Employee in repair order created from picking. +* When this module is migrated it will be called "repair_hr". + +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 smash it by providing detailed and welcomed feedback. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Contributors +------------ + +* Ana Juaristi +* Alfredo de la Fuente diff --git a/hr_stock_picking_create_repair/__init__.py b/hr_stock_picking_create_repair/__init__.py new file mode 100644 index 00000000..0650744f --- /dev/null +++ b/hr_stock_picking_create_repair/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/hr_stock_picking_create_repair/__manifest__.py b/hr_stock_picking_create_repair/__manifest__.py new file mode 100644 index 00000000..8447c62a --- /dev/null +++ b/hr_stock_picking_create_repair/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +{ + "name": "HR Stock Picking Create Repair", + "version": "18.0.1.0.0", + "category": "Human Resources/Employees", + "license": "AGPL-3", + "author": "Avanzosc", + "website": "https://github.com/avanzosc/hr-addons", + "depends": [ + "repair", + "hr", + ], + "data": [ + "views/repair_order_views.xml", + ], + "installable": True, + "auto_install": False, +} diff --git a/hr_stock_picking_create_repair/i18n/en_US.po b/hr_stock_picking_create_repair/i18n/en_US.po new file mode 100644 index 00000000..27e3bc13 --- /dev/null +++ b/hr_stock_picking_create_repair/i18n/en_US.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_stock_picking_create_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-03-23 14:05+0000\n" +"PO-Revision-Date: 2026-03-23 14:05+0000\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: hr_stock_picking_create_repair +#: model:ir.model.fields,field_description:hr_stock_picking_create_repair.field_repair_order__employee_id +#: model_terms:ir.ui.view,arch_db:hr_stock_picking_create_repair.view_repair_order_form_filter +msgid "Employee" +msgstr "" + +#. module: hr_stock_picking_create_repair +#: model:ir.model,name:hr_stock_picking_create_repair.model_repair_order +msgid "Repair Order" +msgstr "" diff --git a/hr_stock_picking_create_repair/i18n/es.po b/hr_stock_picking_create_repair/i18n/es.po new file mode 100644 index 00000000..cb0da87e --- /dev/null +++ b/hr_stock_picking_create_repair/i18n/es.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_stock_picking_create_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-03-23 14:06+0000\n" +"PO-Revision-Date: 2026-03-23 14:06+0000\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: hr_stock_picking_create_repair +#: model:ir.model.fields,field_description:hr_stock_picking_create_repair.field_repair_order__employee_id +#: model_terms:ir.ui.view,arch_db:hr_stock_picking_create_repair.view_repair_order_form_filter +msgid "Employee" +msgstr "Empleado" + +#. module: hr_stock_picking_create_repair +#: model:ir.model,name:hr_stock_picking_create_repair.model_repair_order +msgid "Repair Order" +msgstr "Orden de reparación" diff --git a/hr_stock_picking_create_repair/i18n/hr_stock_picking_create_repair.pot b/hr_stock_picking_create_repair/i18n/hr_stock_picking_create_repair.pot new file mode 100644 index 00000000..27e3bc13 --- /dev/null +++ b/hr_stock_picking_create_repair/i18n/hr_stock_picking_create_repair.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_stock_picking_create_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-03-23 14:05+0000\n" +"PO-Revision-Date: 2026-03-23 14:05+0000\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: hr_stock_picking_create_repair +#: model:ir.model.fields,field_description:hr_stock_picking_create_repair.field_repair_order__employee_id +#: model_terms:ir.ui.view,arch_db:hr_stock_picking_create_repair.view_repair_order_form_filter +msgid "Employee" +msgstr "" + +#. module: hr_stock_picking_create_repair +#: model:ir.model,name:hr_stock_picking_create_repair.model_repair_order +msgid "Repair Order" +msgstr "" diff --git a/hr_stock_picking_create_repair/i18n/it.po b/hr_stock_picking_create_repair/i18n/it.po new file mode 100644 index 00000000..17c3fd6e --- /dev/null +++ b/hr_stock_picking_create_repair/i18n/it.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_stock_picking_create_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-03-23 14:06+0000\n" +"PO-Revision-Date: 2026-03-23 14:06+0000\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: hr_stock_picking_create_repair +#: model:ir.model.fields,field_description:hr_stock_picking_create_repair.field_repair_order__employee_id +#: model_terms:ir.ui.view,arch_db:hr_stock_picking_create_repair.view_repair_order_form_filter +msgid "Employee" +msgstr "" + +#. module: hr_stock_picking_create_repair +#: model:ir.model,name:hr_stock_picking_create_repair.model_repair_order +msgid "Repair Order" +msgstr "Ordine di riparazione" diff --git a/hr_stock_picking_create_repair/i18n/pt.po b/hr_stock_picking_create_repair/i18n/pt.po new file mode 100644 index 00000000..69cc63b6 --- /dev/null +++ b/hr_stock_picking_create_repair/i18n/pt.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_stock_picking_create_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-03-23 14:06+0000\n" +"PO-Revision-Date: 2026-03-23 14:06+0000\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: hr_stock_picking_create_repair +#: model:ir.model.fields,field_description:hr_stock_picking_create_repair.field_repair_order__employee_id +#: model_terms:ir.ui.view,arch_db:hr_stock_picking_create_repair.view_repair_order_form_filter +msgid "Employee" +msgstr "" + +#. module: hr_stock_picking_create_repair +#: model:ir.model,name:hr_stock_picking_create_repair.model_repair_order +msgid "Repair Order" +msgstr "Ordem de Reparação" diff --git a/hr_stock_picking_create_repair/i18n/zh_CN.po b/hr_stock_picking_create_repair/i18n/zh_CN.po new file mode 100644 index 00000000..a127c85f --- /dev/null +++ b/hr_stock_picking_create_repair/i18n/zh_CN.po @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * hr_stock_picking_create_repair +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 18.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2026-03-23 14:07+0000\n" +"PO-Revision-Date: 2026-03-23 14:07+0000\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: hr_stock_picking_create_repair +#: model:ir.model.fields,field_description:hr_stock_picking_create_repair.field_repair_order__employee_id +#: model_terms:ir.ui.view,arch_db:hr_stock_picking_create_repair.view_repair_order_form_filter +msgid "Employee" +msgstr "" + +#. module: hr_stock_picking_create_repair +#: model:ir.model,name:hr_stock_picking_create_repair.model_repair_order +msgid "Repair Order" +msgstr "维修订单" diff --git a/hr_stock_picking_create_repair/models/__init__.py b/hr_stock_picking_create_repair/models/__init__.py new file mode 100644 index 00000000..2251f67d --- /dev/null +++ b/hr_stock_picking_create_repair/models/__init__.py @@ -0,0 +1 @@ +from . import repair_order diff --git a/hr_stock_picking_create_repair/models/repair_order.py b/hr_stock_picking_create_repair/models/repair_order.py new file mode 100644 index 00000000..e073fc15 --- /dev/null +++ b/hr_stock_picking_create_repair/models/repair_order.py @@ -0,0 +1,11 @@ +# Copyright 2024 Alfredo de la Fuente - AvanzOSC +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). +from odoo import fields, models + + +class RepairOrder(models.Model): + _inherit = "repair.order" + + employee_id = fields.Many2one( + string="Employee", comodel_name="hr.employee", copy=False + ) diff --git a/hr_stock_picking_create_repair/pyproject.toml b/hr_stock_picking_create_repair/pyproject.toml new file mode 100644 index 00000000..4231d0cc --- /dev/null +++ b/hr_stock_picking_create_repair/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/hr_stock_picking_create_repair/views/repair_order_views.xml b/hr_stock_picking_create_repair/views/repair_order_views.xml new file mode 100644 index 00000000..ec0aef49 --- /dev/null +++ b/hr_stock_picking_create_repair/views/repair_order_views.xml @@ -0,0 +1,41 @@ + + + + repair.order + + + + + + + + + + repair.order + + 100 + + + + + + + + + repair.order + + + + + + + + + + +