diff options
| author | HafidBuroiroh <hafidburoiroh09@gmail.com> | 2026-03-12 13:42:34 +0700 |
|---|---|---|
| committer | HafidBuroiroh <hafidburoiroh09@gmail.com> | 2026-03-12 13:42:34 +0700 |
| commit | 4dbf80591699b3f438966efbd3be9440b122ba8c (patch) | |
| tree | 1ee95ec07eb59d030ff28c98acc0bdbab7be6aef | |
| parent | 92c2d5297ce7843a7f14c57a92878f57ba8cf8a3 (diff) | |
<hafid> fix notif sourcing
| -rw-r--r-- | indoteknik_custom/models/res_partner.py | 2 | ||||
| -rw-r--r-- | indoteknik_custom/models/sourcing_job_order.py | 4 | ||||
| -rw-r--r-- | indoteknik_custom/views/res_partner.xml | 1 |
3 files changed, 2 insertions, 5 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: diff --git a/indoteknik_custom/views/res_partner.xml b/indoteknik_custom/views/res_partner.xml index 87c161ed..8378bf34 100644 --- a/indoteknik_custom/views/res_partner.xml +++ b/indoteknik_custom/views/res_partner.xml @@ -37,7 +37,6 @@ <field name="is_not_potential"/> <field name="pareto_status"/> <field name="digital_invoice_tax"/> - <field name="chat_id_telegram"/> </field> <!-- <field name="nama_wajib_pajak" position="attributes"> <attribute name="required">1</attribute> |
