Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
7802 Vizualizări

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
Imagine profil
Abandonează
Cel mai bun răspuns

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

key : report.url

value :  http://0.0.0.0:8069

Imagine profil
Abandonează
Cel mai bun răspuns

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.
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
mai 22
4285
1
iun. 25
2253
2
iun. 25
580
3
iun. 24
3409
1
mar. 23
3819