diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-07-26 11:58:32 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-07-26 11:58:32 +0700 |
| commit | e09e59db22d65fa144c2a43cd8f6959fada49484 (patch) | |
| tree | 0567b1a8f0c8c57efb2d0d38ae489da26a55c245 /indoteknik_custom/models/shipment_group.py | |
| parent | fff5507cf7c0f360a5c68068e77fa84b1d6340c5 (diff) | |
| parent | 77e76f376b78733cad58aa196e3ead3c6a04ff42 (diff) | |
(andri) fix 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): |
