summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2025-01-20 16:03:11 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2025-01-20 16:03:11 +0700
commit43ee0e0069d4177a2847dbe6423f236d7d04bd54 (patch)
tree310882ae570df0009a32f4e44c36a93ad3bad1d7
parentd406e0cc949f8f35631d872993850f3ccec0821d (diff)
parent4b41c2b82a7ec48baf91746dfa9e79b94a17eefb (diff)
Merge branch 'odoo-production' of bitbucket.org:altafixco/indoteknik-addons into odoo-production
-rw-r--r--indoteknik_custom/models/ir_actions_report.py3
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):