diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2026-03-12 06:43:09 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2026-03-12 06:43:09 +0000 |
| commit | 16c09a6fbaae6ab105e952ad8f60ac46bab24665 (patch) | |
| tree | 6672fce4a3466e36e1d82286484b11f2758db5f8 | |
| parent | b91d6d680dbb1c34c23ba6f3818db27dc4c335df (diff) | |
| parent | 4dbf80591699b3f438966efbd3be9440b122ba8c (diff) | |
Merged in CR/Sourcing-Job (pull request #500)
<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> |
