跳至内容
菜单
此问题已终结

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?

形象
丢弃
相关帖文 回复 查看 活动
0
7月 17
5838
2
4月 24
6294
2
8月 25
2351
2
6月 25
675
1
12月 24
4086