跳至內容
選單
此問題已被標幟
2 回覆
7798 瀏覽次數

I am facing an issue where the controller is ignoring the arguments that i pass from javascript.

odoo.http: <function odoo.addons.module.controllers.main.ship_order> called ignoring args <stock_moves={'61': 1}>, <package_info={'112': 1}>

this works fine locally but, breaks on the server.
Here is my method.

  @http.route('/send_order', type='json', auth='user')
    def ship_order(self, picking_id, stock_moves, package_info):

Is there anything wrong? is it because i am passing dictionary values?

Thanks
頭像
捨棄
最佳答案

Add report.url to http://0.0.0.0:8069 in technical\system configuration,

key : report.url

value :  http://0.0.0.0:8069

頭像
捨棄
最佳答案

Hi @seejo,


Actually you have to get those values in request.jsonrequest and in parameter dont pass anything just use **kwargs, that called ignoring args issue will resolve.
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
5月 22
4284
1
6月 25
2245
2
6月 25
578
3
6月 24
3395
1
3月 23
3811