From 2b85d00abd76ca0ef20b13cf904769a0284270d3 Mon Sep 17 00:00:00 2001 From: FrankC013 Date: Tue, 3 Sep 2024 12:50:25 +0200 Subject: [PATCH] [REM] mrp_production_batch: removing dead code --- mrp_production_batch/README.rst | 2 +- mrp_production_batch/__init__.py | 1 - mrp_production_batch/__manifest__.py | 1 - mrp_production_batch/i18n/es.po | 83 ++++--------------- .../security/ir.model.access.csv | 2 - .../static/description/index.html | 2 +- mrp_production_batch/wizard/__init__.py | 2 - .../mrp_production_batch_line_wizard.py | 22 ----- .../wizard/mrp_production_batch_wizard.py | 47 ----------- .../wizard/mrp_production_batch_wizard.xml | 42 ---------- 10 files changed, 16 insertions(+), 188 deletions(-) delete mode 100644 mrp_production_batch/wizard/__init__.py delete mode 100644 mrp_production_batch/wizard/mrp_production_batch_line_wizard.py delete mode 100644 mrp_production_batch/wizard/mrp_production_batch_wizard.py delete mode 100644 mrp_production_batch/wizard/mrp_production_batch_wizard.xml diff --git a/mrp_production_batch/README.rst b/mrp_production_batch/README.rst index 76776cf9c..2a596a591 100644 --- a/mrp_production_batch/README.rst +++ b/mrp_production_batch/README.rst @@ -7,7 +7,7 @@ MRP Production Batch !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:61fb5987a03dd433cc41146fb2b0a02cde67896a7c73de4607fda46f2e1dbf4a + !! source digest: sha256:a8ac7f61ac8767f22ec328b4cd40272b9f6ee210038ea12b7024bbcdabac34de !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/mrp_production_batch/__init__.py b/mrp_production_batch/__init__.py index 9b4296142..0650744f6 100644 --- a/mrp_production_batch/__init__.py +++ b/mrp_production_batch/__init__.py @@ -1,2 +1 @@ from . import models -from . import wizard diff --git a/mrp_production_batch/__manifest__.py b/mrp_production_batch/__manifest__.py index 815dc941c..13058dd2f 100644 --- a/mrp_production_batch/__manifest__.py +++ b/mrp_production_batch/__manifest__.py @@ -18,6 +18,5 @@ "views/stock_picking_views.xml", "views/res_config_settings_views.xml", "views/mrp_bom_line.xml", - "wizard/mrp_production_batch_wizard.xml", ], } diff --git a/mrp_production_batch/i18n/es.po b/mrp_production_batch/i18n/es.po index 063ea8842..34f38950b 100644 --- a/mrp_production_batch/i18n/es.po +++ b/mrp_production_batch/i18n/es.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-09-02 14:30+0000\n" -"PO-Revision-Date: 2024-09-02 14:30+0000\n" +"POT-Creation-Date: 2024-09-03 10:57+0000\n" +"PO-Revision-Date: 2024-09-03 10:57+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -18,7 +18,9 @@ msgstr "" #. module: mrp_production_batch #: model_terms:ir.ui.view,arch_db:mrp_production_batch.stock_production_type_kanban msgid "" -msgstr "" +msgstr "" +"" #. module: mrp_production_batch #: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_batch_view_form @@ -36,10 +38,10 @@ msgid "" "specific.\" role=\"img\" aria-label=\"Values set here are company-" "specific.\" groups=\"base.group_multi_company\"/>" msgstr "" -"" +"" #. module: mrp_production_batch #: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_form_view @@ -92,8 +94,9 @@ msgid "" "An unexpected error has occurred. There's no `active_model` or `active_ids` " "in the context. This is a technical error, please contact technical support." msgstr "" -"Se ha producido un error inesperado. No hay `active_model` o `active_ids` en " -"el contexto. Este es un error técnico, por favor contacta al soporte técnico." +"Se ha producido un error inesperado. No hay `active_model` o `active_ids` en" +" el contexto. Este es un error técnico, por favor contacta al soporte " +"técnico." #. module: mrp_production_batch #: model:ir.actions.act_window,name:mrp_production_batch.mrp_production_batch @@ -123,11 +126,6 @@ msgstr "" "La Lista de Materiales es necesaria para la producción. Por favor, " "desvincule la producción por lotes." -#. module: mrp_production_batch -#: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_batch_wizard_view_form -msgid "Cancel" -msgstr "Cancelar" - #. module: mrp_production_batch #: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_form_view msgid "Check Production" @@ -174,27 +172,17 @@ msgid "Count Pb Waiting" msgstr "Contar Lp en Espera" #. module: mrp_production_batch -#: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_batch_wizard_view_form -msgid "Create Batch" -msgstr "Crear Lote" - -#. module: mrp_production_batch -#: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_batch_wizard_view_form #: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_tree_view msgid "Create and View Batch" msgstr "Crear y Ver Lote" #. module: mrp_production_batch #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__create_uid -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__create_uid -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__create_uid msgid "Created by" msgstr "Creado por" #. module: mrp_production_batch #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__create_date -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__create_date -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__create_date msgid "Created on" msgstr "Creado en" @@ -214,8 +202,6 @@ msgstr "Operaciones Detalladas" #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_bom_line__display_name #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production__display_name #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__display_name -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__display_name -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__display_name #: model:ir.model.fields,field_description:mrp_production_batch.field_res_company__display_name #: model:ir.model.fields,field_description:mrp_production_batch.field_res_config_settings__display_name #: model:ir.model.fields,field_description:mrp_production_batch.field_stock_picking_type__display_name @@ -245,8 +231,6 @@ msgstr "Mensaje de Error" #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_bom_line__id #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production__id #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__id -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__id -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__id #: model:ir.model.fields,field_description:mrp_production_batch.field_res_company__id #: model:ir.model.fields,field_description:mrp_production_batch.field_res_config_settings__id #: model:ir.model.fields,field_description:mrp_production_batch.field_stock_picking_type__id @@ -254,11 +238,6 @@ msgstr "Mensaje de Error" msgid "ID" msgstr "" -#. module: mrp_production_batch -#: model:ir.actions.act_window,name:mrp_production_batch.mrp_production_batch_wizard_action -msgid "Import partners" -msgstr "Importar socios" - #. module: mrp_production_batch #: model:ir.model.fields.selection,name:mrp_production_batch.selection__mrp_production_batch__state__in_progress #: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_batch_view_search @@ -280,8 +259,6 @@ msgstr "Está listo para producir" #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_bom_line____last_update #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production____last_update #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch____last_update -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard____last_update -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard____last_update #: model:ir.model.fields,field_description:mrp_production_batch.field_res_company____last_update #: model:ir.model.fields,field_description:mrp_production_batch.field_res_config_settings____last_update #: model:ir.model.fields,field_description:mrp_production_batch.field_stock_picking_type____last_update @@ -291,15 +268,11 @@ msgstr "Última modificación el" #. module: mrp_production_batch #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__write_uid -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__write_uid -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__write_uid msgid "Last Updated by" msgstr "Última actualización por" #. module: mrp_production_batch #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__write_date -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__write_date -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__write_date msgid "Last Updated on" msgstr "Última actualización el" @@ -313,16 +286,6 @@ msgstr "Lote/Número de serie" msgid "MRP Production Batch" msgstr "MRP Lote de Producción" -#. module: mrp_production_batch -#: model:ir.model,name:mrp_production_batch.model_mrp_production_batch_wizard -msgid "MRP Production Batch wizard" -msgstr "Asistente de Lote de Producción MRP" - -#. module: mrp_production_batch -#: model:ir.model,name:mrp_production_batch.model_mrp_production_batch_line_wizard -msgid "MRP Production Line Batch wizard" -msgstr "Asistente de Lote de Producción MRP" - #. module: mrp_production_batch #: model_terms:ir.ui.view,arch_db:mrp_production_batch.res_config_settings_view_form msgid "Manage production batch" @@ -382,7 +345,6 @@ msgstr "Número de Pedidos de Fabricación a Procesar sin Lote" #. module: mrp_production_batch #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__operation_type -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__operation_type msgid "Operation Type" msgstr "Tipo de Operación" @@ -405,14 +367,8 @@ msgid "" "Please configure a sequence for the production batch in the configuration " "settings." msgstr "" -"Por favor, configure una secuencia para el lote de producción en los " -"ajustes de configuración." - -#. module: mrp_production_batch -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__production_id -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__production_ids -msgid "Production" -msgstr "Producción" +"Por favor, configure una secuencia para el lote de producción en los ajustes" +" de configuración." #. module: mrp_production_batch #: code:addons/mrp_production_batch/models/mrp_production.py:0 @@ -432,11 +388,6 @@ msgstr "Lote de Producción" msgid "Production Batch Sequence" msgstr "Secuencia de Lote de Producción" -#. module: mrp_production_batch -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__production_batch_wizard_id -msgid "Production Batch Wizard" -msgstr "Asistente de Lote de Producción" - #. module: mrp_production_batch #: model:ir.ui.menu,name:mrp_production_batch.menu_mrp_production_batch #: model_terms:ir.ui.view,arch_db:mrp_production_batch.mrp_production_batch_view_form @@ -455,7 +406,6 @@ msgstr "Configuración de lote de producción" #. module: mrp_production_batch #: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch__product_ids -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_line_wizard__product_ids msgid "Products" msgstr "Productos" @@ -611,11 +561,6 @@ msgstr "Usar en Lote" msgid "Waiting" msgstr "Esperando" -#. module: mrp_production_batch -#: model:ir.model.fields,field_description:mrp_production_batch.field_mrp_production_batch_wizard__warehouse_id -msgid "Warehouse" -msgstr "Almacén" - #. module: mrp_production_batch #: code:addons/mrp_production_batch/models/mrp_production.py:0 #, python-format diff --git a/mrp_production_batch/security/ir.model.access.csv b/mrp_production_batch/security/ir.model.access.csv index 6c5853f22..555e797f8 100644 --- a/mrp_production_batch/security/ir.model.access.csv +++ b/mrp_production_batch/security/ir.model.access.csv @@ -1,4 +1,2 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_mrp_production_batch_manager,mrp.production.batch manager,model_mrp_production_batch,base.group_user,1,1,1,1 -access_mrp_production_batch_wizard_manager,mrp.production.batch.wizard manager,model_mrp_production_batch_wizard,base.group_user,1,1,1,1 -access_mrp_production_batch_line_wizard_manager,mrp.production.batch.line.wizard manager,model_mrp_production_batch_line_wizard,base.group_user,1,1,1,1 diff --git a/mrp_production_batch/static/description/index.html b/mrp_production_batch/static/description/index.html index e4784b361..1ccb3c143 100644 --- a/mrp_production_batch/static/description/index.html +++ b/mrp_production_batch/static/description/index.html @@ -367,7 +367,7 @@

MRP Production Batch

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:61fb5987a03dd433cc41146fb2b0a02cde67896a7c73de4607fda46f2e1dbf4a +!! source digest: sha256:a8ac7f61ac8767f22ec328b4cd40272b9f6ee210038ea12b7024bbcdabac34de !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 NuoBiT/odoo-addons

    diff --git a/mrp_production_batch/wizard/__init__.py b/mrp_production_batch/wizard/__init__.py deleted file mode 100644 index 52bdd45ca..000000000 --- a/mrp_production_batch/wizard/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -from . import mrp_production_batch_wizard -from . import mrp_production_batch_line_wizard diff --git a/mrp_production_batch/wizard/mrp_production_batch_line_wizard.py b/mrp_production_batch/wizard/mrp_production_batch_line_wizard.py deleted file mode 100644 index 9b6602a9a..000000000 --- a/mrp_production_batch/wizard/mrp_production_batch_line_wizard.py +++ /dev/null @@ -1,22 +0,0 @@ -# Copyright NuoBiT Solutions - Kilian Niubo -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - -from odoo import fields, models - - -class MRPProductionBatchLineWizard(models.TransientModel): - _name = "mrp.production.batch.line.wizard" - _description = "MRP Production Line Batch wizard" - - production_batch_wizard_id = fields.Many2one( - comodel_name="mrp.production.batch.wizard", - required=True, - ondelete="cascade", - ) - production_id = fields.Many2one( - comodel_name="mrp.production", - ) - product_ids = fields.Many2many( - comodel_name="product.product", - string="Products", - ) diff --git a/mrp_production_batch/wizard/mrp_production_batch_wizard.py b/mrp_production_batch/wizard/mrp_production_batch_wizard.py deleted file mode 100644 index faa703b20..000000000 --- a/mrp_production_batch/wizard/mrp_production_batch_wizard.py +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright NuoBiT Solutions - Kilian Niubo -# Copyright NuoBiT Solutions - Frank Cespedes -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - -from odoo import fields, models - - -class MRPProductionBatchWizard(models.TransientModel): - _name = "mrp.production.batch.wizard" - _description = "MRP Production Batch wizard" - - production_ids = fields.One2many( - comodel_name="mrp.production.batch.line.wizard", - inverse_name="production_batch_wizard_id", - ) - operation_type = fields.Many2one( - comodel_name="stock.picking.type", - required=True, - ) - warehouse_id = fields.Many2one( - comodel_name="stock.warehouse", - ) - - def action_mrp_production_batch_group(self): - self.ensure_one() - model = self.env.context.get("active_model") - mrp_production_ids = self.env[model].browse(self.env.context.get("active_ids")) - production_batch = self.env["mrp.production.batch"].create( - { - "creation_date": fields.Datetime.now(), - "production_ids": [ - (6, 0, mrp_production_ids.ids), - ], - "operation_type": self.operation_type.id, - } - ) - action = self.env["ir.actions.act_window"]._for_xml_id( - "mrp_production_batch.mrp_production_batch_action" - ) - action["views"] = [ - ( - self.env.ref("mrp_production_batch.mrp_production_batch_view_form").id, - "form", - ) - ] - action["res_id"] = production_batch.id - return action diff --git a/mrp_production_batch/wizard/mrp_production_batch_wizard.xml b/mrp_production_batch/wizard/mrp_production_batch_wizard.xml deleted file mode 100644 index 30b73d06b..000000000 --- a/mrp_production_batch/wizard/mrp_production_batch_wizard.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - mrp.production.batch.wizard.form - mrp.production.batch.wizard - -
    -
    - - - - -
    -
    - - - - - Import partners - mrp.production.batch.wizard - form - new - -