diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-01-20 14:45:08 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-01-20 14:45:08 +0700 |
| commit | 4b41c2b82a7ec48baf91746dfa9e79b94a17eefb (patch) | |
| tree | 1738a1fb5f09d512be164664d4237b7bb252c39a | |
| parent | 717719226f60f6a7c5e89e8db18eb22a62b3391a (diff) | |
<iman> hanya send telegram if quotation
| -rw-r--r-- | indoteknik_custom/models/ir_actions_report.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/ir_actions_report.py b/indoteknik_custom/models/ir_actions_report.py index 6e15fbfc..c1e84031 100644 --- a/indoteknik_custom/models/ir_actions_report.py +++ b/indoteknik_custom/models/ir_actions_report.py @@ -4,7 +4,8 @@ class IrActionsReport(models.Model): _inherit = 'ir.actions.report' def _get_readable_fields(self): - # self.send_to_telegram() + if self.env.context.get('active_model') == 'sale.order': + self.send_to_telegram() return super()._get_readable_fields() def send_to_telegram(self): |
