diff --git a/stock_picking_batch_custom/README.rst b/stock_picking_batch_custom/README.rst new file mode 100644 index 0000000..615cf7a --- /dev/null +++ b/stock_picking_batch_custom/README.rst @@ -0,0 +1,8 @@ +=============================== +Stock Picking Batch Custom +=============================== + +Extra columnas opcionales en las operaciones detalladas de lotes de picking. + +- Columna de partner del albarán (picking_partner_id) opcional/oculta por defecto. +- Columna de categoría de producto (product_categ_id) opcional/oculta por defecto para ordenar/agrupación. diff --git a/stock_picking_batch_custom/__init__.py b/stock_picking_batch_custom/__init__.py new file mode 100644 index 0000000..ce9807d --- /dev/null +++ b/stock_picking_batch_custom/__init__.py @@ -0,0 +1 @@ +from . import models # noqa: F401 diff --git a/stock_picking_batch_custom/__manifest__.py b/stock_picking_batch_custom/__manifest__.py new file mode 100644 index 0000000..4882701 --- /dev/null +++ b/stock_picking_batch_custom/__manifest__.py @@ -0,0 +1,18 @@ +# Copyright 2026 Criptomart +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). +{ # noqa: B018 + "name": "Stock Picking Batch Custom", + "version": "18.0.1.0.0", + "category": "Warehouse", + "summary": "Extra columns for batch detailed operations", + "author": "Odoo Community Association (OCA), Criptomart", + "maintainers": ["Criptomart"], + "website": "https://github.com/Criptomart", + "license": "AGPL-3", + "depends": [ + "stock_picking_batch", + ], + "data": [ + "views/stock_move_line_views.xml", + ], +} diff --git a/stock_picking_batch_custom/models/__init__.py b/stock_picking_batch_custom/models/__init__.py new file mode 100644 index 0000000..5a228fe --- /dev/null +++ b/stock_picking_batch_custom/models/__init__.py @@ -0,0 +1 @@ +from . import stock_move_line # noqa: F401 diff --git a/stock_picking_batch_custom/models/stock_move_line.py b/stock_picking_batch_custom/models/stock_move_line.py new file mode 100644 index 0000000..cb4ad48 --- /dev/null +++ b/stock_picking_batch_custom/models/stock_move_line.py @@ -0,0 +1,17 @@ +# Copyright 2026 Criptomart +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +from odoo import fields +from odoo import models + + +class StockMoveLine(models.Model): + _inherit = "stock.move.line" + + product_categ_id = fields.Many2one( + comodel_name="product.category", + string="Product Category", + related="product_id.categ_id", + store=True, + readonly=True, + ) diff --git a/stock_picking_batch_custom/static/description/icon.png b/stock_picking_batch_custom/static/description/icon.png new file mode 100644 index 0000000..d4a79d1 Binary files /dev/null and b/stock_picking_batch_custom/static/description/icon.png differ diff --git a/stock_picking_batch_custom/views/stock_move_line_views.xml b/stock_picking_batch_custom/views/stock_move_line_views.xml new file mode 100644 index 0000000..a000a97 --- /dev/null +++ b/stock_picking_batch_custom/views/stock_move_line_views.xml @@ -0,0 +1,16 @@ + + + + stock.move.line.list.batch.custom + stock.move.line + + + + + + + + + + +