Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2147 Переглядів

I have a page with its controller that I am using as a webhook but I found a problem. 

The http.py from Odoo can't process GET with json empty like " ", 

So I overwrite this file with:

...

        if self.jsonrequest == "": 

                self.jsonrequest = {}

         self.params = dict(self.jsonrequest.get("params", {})) 

         self.context = self.params.pop('context', dict(self.session.context))


But I want to do it out of the source code. 

I don't know how do it from my controller.py


Is it possible?

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
0
лип. 17
5881
2
квіт. 24
6353
2
серп. 25
2410
Controller not working Вирішено
2
черв. 25
752
1
груд. 24
4303