diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 10:57:24 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-05-27 10:57:24 +0700 |
| commit | 755f6efe380cbbdd05ba592f651ca87030a22143 (patch) | |
| tree | 96734fa0ad5a9c18f162f9e8a2c087e4398176eb /indoteknik_custom/models/stock_picking.py | |
| parent | 8a7315b6e8ba391f1260bc994df00107d52623c3 (diff) | |
fix api shipment group
Diffstat (limited to 'indoteknik_custom/models/stock_picking.py')
| -rw-r--r-- | indoteknik_custom/models/stock_picking.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/stock_picking.py b/indoteknik_custom/models/stock_picking.py index 887b2f92..3223377c 100644 --- a/indoteknik_custom/models/stock_picking.py +++ b/indoteknik_custom/models/stock_picking.py @@ -310,10 +310,10 @@ class StockPicking(models.Model): except ValueError: return False - def action_get_kgx_pod(self): + def action_get_kgx_pod(self, shipment=False): self.ensure_one() - awb_number = self._get_kgx_awb_number() + awb_number = shipment or self._get_kgx_awb_number() if not awb_number: raise UserError("Nomor AWB tidak dapat dibuat, pastikan picking memiliki name dan origin") |
