[IMP] stock_picking_batch_custom: add home_delivery indicator to move line view

Add related field home_delivery on stock.move.line from picking_id,
and expose it in the batch move line list view as an optional boolean toggle.
This commit is contained in:
snt 2026-05-20 12:35:16 +02:00 committed by GitHub Copilot
parent 8f7eca45b8
commit 5bb5d20244
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,11 @@ class StockMoveLine(models.Model):
copy=False,
)
home_delivery = fields.Boolean(
related="picking_id.home_delivery",
readonly=True,
)
consumer_group_id = fields.Many2one(
comodel_name="res.partner",
compute="_compute_consumer_group_id",