Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata

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?

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
lug 17
5856
2
apr 24
6332
2
ago 25
2398
2
giu 25
708
1
dic 24
4184