0

This is my scheduled action in Odoo:
action image

and this is my code:

# -*- coding: utf-8 -*-
from odoo import models, api
import pika
import json
import logging
_logger = logging.getLogger(__name__)
class HelpdeskTicket(models.Model):
 _inherit = 'helpdesk.ticket'
 def send_stage_change_to_rabbitmq(self):
 _logger.info("Méthode OK : chargée dans helpdesk.ticket")

I encountered an error in the container logs:
error image

agilgur5
2,1626 gold badges54 silver badges74 bronze badges
asked Dec 8, 2025 at 14:31
5
  • Probably a stupid question, but: Are you sure your module is installed and every __init__.py is filled correctly? Commented Dec 8, 2025 at 16:32
  • Please do not upload images of code/data/errors. Commented Dec 8, 2025 at 18:51
  • yes, the module is installed correctly and the init also Commented Dec 8, 2025 at 20:19
  • With all the information available, I cannot see any mistake. Commented Dec 9, 2025 at 8:12
  • I'm using helpdesk_mgmt.model_helpdesk_ticket instead of helpdesk.ticket in the action, and it's working. Commented Dec 11, 2025 at 21:51

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.