summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/res_partner.py2
-rw-r--r--indoteknik_custom/models/sourcing_job_order.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/indoteknik_custom/models/res_partner.py b/indoteknik_custom/models/res_partner.py
index 49aeb62b..5bbaaf1c 100644
--- a/indoteknik_custom/models/res_partner.py
+++ b/indoteknik_custom/models/res_partner.py
@@ -183,8 +183,6 @@ class ResPartner(models.Model):
is_cbd_locked = fields.Boolean("Locked to CBD?", default=False, tracking=True, help="Jika dicentang, maka partner ini terkunci pada payment term CBD karena memiliki invoice yang sudah jatuh tempo lebih dari 30 hari.")
cbd_lock_date = fields.Datetime("CBD Lock Date", tracking=True, help="Tanggal ketika partner ini dikunci pada payment term CBD.")
-
- chat_id_telegram = fields.Char(string='ChatId Telegram')
@api.model
diff --git a/indoteknik_custom/models/sourcing_job_order.py b/indoteknik_custom/models/sourcing_job_order.py
index 523064f9..b1106dcf 100644
--- a/indoteknik_custom/models/sourcing_job_order.py
+++ b/indoteknik_custom/models/sourcing_job_order.py
@@ -649,8 +649,8 @@ class SourcingJobOrderLine(models.Model):
def action_ask_approval(self):
bot_sjo = '8335015210:AAGbObP0jQf7ptyqJhYdBYn5Rm0CWOd_yIM'
- chat_sjo = self.show_salesperson.partner_id.chat_id_telegram or False
- # chat_sjo = '6076436058'
+ # chat_sjo = self.show_salesperson.partner_id.chat_id_telegram or False
+ chat_sjo = '6076436058'
api_base = f'https://api.telegram.org/bot{bot_sjo}/sendMessage'
for line in self: