Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
1180 Widoki

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é

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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


Awatar
Odrzuć