Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1186 Zobrazení

Hello,

i need your help.


I want to override the message_new Function of the helpdesk_ticket.py in the Helpdesk Module.

Here is the Code:


I want add some code before the ticket will be created:

Here is my Code:



Odoo runs only the Original-Code but not my changes. After the call ticket = super()  Odoo use the Original and not the overwritten Code.


Does anyone knows what my Problem is?


Thanks in advance 

André

Avatar
Zrušit
Autor Nejlepší odpověď

Could this be a Problem becaus i try to overwrite an overwritten function? 


Avatar
Zrušit