addons-cm/stock_picking_batch_custom/models/stock_move_line.py

23 lines
537 B
Python

# 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 (Batch)",
related="product_id.categ_id",
store=True,
readonly=True,
)
is_collected = fields.Boolean(
string="Collected",
default=False,
copy=False,
)