Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7803 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mei 22
4286
1
jun. 25
2254
2
jun. 25
581
3
jun. 24
3409
1
mrt. 23
3819