From 8f07d24c8362cb6a4d5ded8f94b75c5057a5b025 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Mon, 7 Jul 2025 10:52:44 +0700 Subject: add receipt on searching shipment group --- fixco_custom/models/shipment_group.py | 1 + 1 file changed, 1 insertion(+) (limited to 'fixco_custom/models/shipment_group.py') diff --git a/fixco_custom/models/shipment_group.py b/fixco_custom/models/shipment_group.py index 75a0f2d..b6ffbda 100644 --- a/fixco_custom/models/shipment_group.py +++ b/fixco_custom/models/shipment_group.py @@ -34,6 +34,7 @@ class ShipmentGroup(models.Model): shipment_line = fields.One2many('shipment.group.line', 'shipment_id', string='Shipment Group Lines', auto_join=True) picking_lines = fields.One2many('picking.line', 'shipment_id', string='Picking Lines', auto_join=True) related_count = fields.Integer(compute='_compute_related_count', string='Related Count') + receipt = fields.Char(string='Receipt', related='picking_lines.scan_receipt') def sync_product_to_picking_line(self): for shipment in self: -- cgit v1.2.3