diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-08-01 14:54:42 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-08-01 14:54:42 +0700 |
| commit | b52e037b7331a783056d9776f17253d83b1a52ad (patch) | |
| tree | 801ff3cebf7553b7f75db7bcd09a94cd527e94ed /indoteknik_custom/models/shipment_group.py | |
| parent | b4fa8f4df995f946b642eda78ca5fc2b8badada2 (diff) | |
| parent | b479cc1c461559810cb5ebe9a05f628dc291a8ef (diff) | |
<hafid> merge conflict
Diffstat (limited to 'indoteknik_custom/models/shipment_group.py')
| -rw-r--r-- | indoteknik_custom/models/shipment_group.py | 2 |
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): |
