summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-01-24 09:48:43 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-01-24 09:48:43 +0700
commit487b73d5a9e0f0c0b8cde152dc5fb1b90f34ec3f (patch)
tree4bd403dfa4cf85f76b85258f6c9e45d3f8fffb2d
parentd61386fdd9e6082f66ba412dc5ad56e3ff3b2c08 (diff)
parent1a5b7ce42ffd240da52e01758d636a31c0877e6e (diff)
Merge branch 'odoo-production' of bitbucket.org:altafixco/indoteknik-addons into odoo-production
-rw-r--r--indoteknik_custom/models/ir_actions_report.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/indoteknik_custom/models/ir_actions_report.py b/indoteknik_custom/models/ir_actions_report.py
index 28adcf74..83636945 100644
--- a/indoteknik_custom/models/ir_actions_report.py
+++ b/indoteknik_custom/models/ir_actions_report.py
@@ -17,13 +17,13 @@ class IrActionsReport(models.Model):
return
# ci_vita 7751529082:AAE9XsZa_Pj2Pi2IN1grX98WkwTaIt32pbI & 5081411103
# iman 7094158106:AAHpWtYOMnA3Yqm_Fvrr3Vw7MrB45vLV9AY & 6592318498
- # bot_name_iman = '7094158106:AAHpWtYOMnA3Yqm_Fvrr3Vw7MrB45vLV9AY'
- # chat_id_iman = '6592318498'
+ bot_name_iman = '7094158106:AAHpWtYOMnA3Yqm_Fvrr3Vw7MrB45vLV9AY'
+ chat_id_iman = '-1002493002821'
bot_name_vita = '7751529082:AAE9XsZa_Pj2Pi2IN1grX98WkwTaIt32pbI'
chat_id_vita = '5081411103'
- apiURL = f'https://api.telegram.org/bot{bot_name_vita}/sendMessage'
+ apiURL = f'https://api.telegram.org/bot{bot_name_iman}/sendMessage'
try:
- requests.post(apiURL, json={'chat_id': chat_id_vita, 'text': sale_order.name + " senilai Rp" + self.format_currency(sale_order.amount_total) + ' untuk customer ' + sale_order.partner_id.name + ' telah dibuat oleh sales ' +sale_order.user_id.name})
+ requests.post(apiURL, json={'chat_id': chat_id_iman, 'text': sale_order.name + " senilai Rp" + self.format_currency(sale_order.amount_total) + ' untuk customer ' + sale_order.partner_id.name + ' telah dibuat oleh sales ' +sale_order.user_id.name})
except Exception as e:
print(e)