diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-25 14:13:58 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-07-25 14:13:58 +0700 |
| commit | e829c7b307083b4d1fa49459e25365981ff12732 (patch) | |
| tree | 62f07ff53481dd21eaa457d37b2c48f3922a67de /indoteknik_custom/models/shipment_group.py | |
| parent | b1c7b43c51c670e42a0dd2399139fbd9a600f121 (diff) | |
| parent | 1a4375094187946782d2e366649b958dec7fc074 (diff) | |
Merge
Merge branch 'odoo-backup' of https://bitbucket.org/altafixco/indoteknik-addons into is_discweb_so_line
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): |
