Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
7862 Переглядів

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.
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
трав. 22
4333
1
черв. 25
2294
Controller not working Вирішено
2
черв. 25
635
3
черв. 24
3466
1
бер. 23
3881