summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/shipment_group.py
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2025-07-31 08:35:01 +0700
committerit-fixcomart <it@fixcomart.co.id>2025-07-31 08:35:01 +0700
commitaeb4fc3b4b8a4c38d6628946232c236a4d2fe2a9 (patch)
tree28db4b1dc10a10bc65f5b57a4470d39e78629ef7 /indoteknik_custom/models/shipment_group.py
parent8d1af98bb7dab812f91d7d275b4004c4e5b0ff75 (diff)
parentd6bdde8fe63ff15ce8f3fee6bc5e8ae903fc78ce (diff)
<hapit>merge
Diffstat (limited to 'indoteknik_custom/models/shipment_group.py')
-rw-r--r--indoteknik_custom/models/shipment_group.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_custom/models/shipment_group.py b/indoteknik_custom/models/shipment_group.py
index 4969c35a..7203b566 100644
--- a/indoteknik_custom/models/shipment_group.py
+++ b/indoteknik_custom/models/shipment_group.py
@@ -36,6 +36,8 @@ class ShipmentGroup(models.Model):
def create(self, vals):
vals['number'] = self.env['ir.sequence'].next_by_code('shipment.group') or '0'
result = super(ShipmentGroup, self).create(vals)
+ if result.shipment_line and result.shipment_line[0].partner_id:
+ result.partner_id = result.shipment_line[0].partner_id.id
return result
class ShipmentGroupLine(models.Model):