Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7800 Zobrazení

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
Avatar
Zrušit
Nejlepší odpověď

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

key : report.url

value :  http://0.0.0.0:8069

Avatar
Zrušit
Nejlepší odpověď

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.
Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 22
4285
1
čvn 25
2252
2
čvn 25
579
3
čvn 24
3405
1
bře 23
3819