diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-12-10 08:58:25 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-12-10 08:58:25 +0700 |
| commit | bab6a911535b771e988093725e0ba378c77297c6 (patch) | |
| tree | 11d8fb591434c4c7b9fca582fe54f8d553e7136e | |
| parent | 6ad0aa164ed76c8889fd76bff99f5d57b1ac1b2e (diff) | |
<iman> update telegram
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 14 | ||||
| -rw-r--r-- | indoteknik_custom/models/website_telegram.py | 2 |
2 files changed, 1 insertions, 15 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 88bbe3cf..7fc6d96a 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -145,20 +145,6 @@ class SaleOrder(models.Model): ('NP', 'Non Pareto') ]) - def action_print_proforma_invoice(self): - """Cetak laporan Jasper secara langsung""" - self.ensure_one() - # Konfigurasi laporan Jasper - report_action = self.env['ir.actions.report'].search([ - ('model', '=', 'sale.order'), - ('report_name', '=', 'Proforma Invoice New') - ], limit=1) - - if report_action: - return report_action.report_action(self) - else: - raise ValueError('Report not found!') - @api.onchange('payment_status') def _is_continue_transaction(self): if not self.is_continue_transaction: diff --git a/indoteknik_custom/models/website_telegram.py b/indoteknik_custom/models/website_telegram.py index e17da371..58816fe2 100644 --- a/indoteknik_custom/models/website_telegram.py +++ b/indoteknik_custom/models/website_telegram.py @@ -46,7 +46,7 @@ class WebsiteTelegram(models.Model): )) self.invite_link = channel_link.link # username_to_add = ['@imsep81', '6285764475716', '@stephanchrst'] - username_to_add = ['@imsep81'] + username_to_add = ['@radiant81'] for name in username_to_add: user_to_add = await client.get_entity(name) result_add_user = await client(functions.channels.InviteToChannelRequest( |
