chatbot_script.py 402 B

1234567891011121314151617
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import models
  4. class ChatbotScript(models.Model):
  5. _inherit = 'chatbot.script'
  6. def action_test_script(self):
  7. self.ensure_one()
  8. return {
  9. 'type': 'ir.actions.act_url',
  10. 'url': '/chatbot/%s/test' % self.id,
  11. 'target': 'self',
  12. }