# Copyright 2026 Criptomart # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl) from odoo import fields from odoo import models class StockMoveLine(models.Model): """Surface the consumer group data on the batch operation lines. The picking already carries these values as stored related fields, so the move line only has to hop one step further. Chaining off ``picking_id`` instead of re-deriving from ``sale_id`` keeps a single source of truth. """ _inherit = "stock.move.line" home_delivery = fields.Boolean( related="picking_id.home_delivery", string="Home Delivery", readonly=True, ) consumer_group_id = fields.Many2one( related="picking_id.consumer_group_id", string="Consumer Group", readonly=True, )