diff options
| author | Indoteknik . <it@fixcomart.co.id> | 2025-06-14 13:06:43 +0700 |
|---|---|---|
| committer | Indoteknik . <it@fixcomart.co.id> | 2025-06-14 13:06:43 +0700 |
| commit | 819f7c2f0dfe0eaf857c44e80062dcc7e94c9828 (patch) | |
| tree | 2cda0cddfe29869e3213e3ad0e0765e53ecb115f /indoteknik_custom/models/sale_order.py | |
| parent | 60801084c9c93b3ec2d584a8a1de4af019b5fa80 (diff) | |
(andri) memindahkan key biteship (test&live) ke system parameter
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 492153c0..8c8a3cc3 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -1101,8 +1101,8 @@ class SaleOrder(models.Model): def _call_biteship_api(self, origin_data, destination_data, items, couriers=None): url = "https://api.biteship.com/v1/rates/couriers" - api_key = "biteship_test.eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSW5kb3Rla25payIsInVzZXJJZCI6IjY3MTViYTJkYzVkMjdkMDAxMjRjODk2MiIsImlhdCI6MTcyOTQ5ODAwMX0.L6C73couP4-cgVEfhKI2g7eMCMo3YOFSRZhS-KSuHNA" - + # api_key = self.env['ir.config_parameter'].sudo().get_param('biteship.api_key_live') + api_key = self.env['ir.config_parameter'].sudo().get_param('biteship.api_key_test') headers = { 'Authorization': api_key, 'Content-Type': 'application/json' |
