diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 09:02:47 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 09:02:47 +0700 |
| commit | 8ac8c2f8b89e6069bf13e879d486fa9cf4814cb4 (patch) | |
| tree | 566aaac904476d4ae0540dac1390ccf0dc3b736e /indoteknik_custom/models/shipment_group.py | |
| parent | c1aefea6e72798848d090abb32bb753c550ce76b (diff) | |
push cr shipment group, vendor approval and purchase order
Diffstat (limited to 'indoteknik_custom/models/shipment_group.py')
| -rw-r--r-- | indoteknik_custom/models/shipment_group.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/indoteknik_custom/models/shipment_group.py b/indoteknik_custom/models/shipment_group.py index 48a3fa21..87d222a6 100644 --- a/indoteknik_custom/models/shipment_group.py +++ b/indoteknik_custom/models/shipment_group.py @@ -17,6 +17,14 @@ class ShipmentGroup(models.Model): carrier_id = fields.Many2one('delivery.carrier', string='Ekspedisi') total_colly_line = fields.Float(string='Total Colly', compute='_compute_total_colly_line') + def sync_api_shipping(self): + for rec in self.shipment_line: + if rec.shipment_id.carrier_id == 173: + rec.picking_id.action_get_kgx_pod() + + if rec.shipment_id.carrier_id == 151: + rec.picking_id.track_envio_shipment() + @api.depends('shipment_line.total_colly') def _compute_total_colly_line(self): for rec in self: |
