Skip to Content
Menu
This question has been flagged
2 Replies
1626 Views
Traceback (most recent call last):
  File "/odoo/odoo-server/odoo/http.py", line 1583, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/odoo/odoo-server/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/odoo/odoo-server/odoo/http.py", line 1610, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/odoo/odoo-server/odoo/http.py", line 1807, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/odoo/odoo-server/addons/website/models/ir_http.py", line 235, in _dispatch
    response = super()._dispatch(endpoint)
  File "/odoo/odoo-server/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "/odoo/odoo-server/odoo/http.py", line 696, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/odoo/odoo-server/addons/web/controllers/dataset.py", line 46, in call_button
    action = self._call_kw(model, method, args, kwargs)
  File "/odoo/odoo-server/addons/web/controllers/dataset.py", line 33, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/odoo/odoo-server/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/odoo/odoo-server/addons/stock/models/stock_picking.py", line 1086, in button_validate
    pickings_not_to_backorder.with_context(cancel_backorder=True)._action_done()
  File "/odoo/odoo-server/addons/sale_stock/models/stock.py", line 84, in _action_done
    res = super()._action_done()
  File "/odoo/odoo-server/addons/stock/models/stock_picking.py", line 892, in _action_done
    todo_moves._action_done(cancel_backorder=self.env.context.get('cancel_backorder'))
  File "/odoo/odoo-server/addons/stock_account/models/stock_move.py", line 259, in _action_done
    for move in res - self:
TypeError: unsupported operand type(s) for -: 'NoneType' and 'stock.move'

The above server error caused the following client error:
RPC_ERROR: Odoo Server Error
    at makeErrorFromResponse (http://erp.sbp.net.id/web/assets/2171-5c63445/web.assets_backend.min.js:970:163)
    at XMLHttpRequest. (http://erp.sbp.net.id/web/assets/2171-5c63445/web.assets_backend.min.js:978:13)


Error happen when i use inventory module, like for add stock, add product, receipt, sending.

Can help to solved this issue ?


Thank you

Avatar
Discard
Author Best Answer

Hi,


We are using Odoo Community version 16.

Also we are not use custom modules, we just use the default app (inventory module) from Odoo Community 16.

Add ons only for theme.


Thanks

Avatar
Discard
Best Answer

Hi,

Could you provide more information like, which Odoo version and how to reproduce the issue.

Also if you are using any custom modules, make sure that they are not causing any trouble and also ensure that you are using the latest source code of corresponding Odoo versions. If the source code is not the latest, try updating it and see if it makes any difference.


If you believe this is an error in the Odoo core, see if you can reproduce it in the odoo runbot and if you are able to reproduce the same there, please report the same at: https://github.com/odoo/odoo/issues


Thanks & Regards

Walnut Software Solutions

Avatar
Discard
Related Posts Replies Views Activity
1
Jul 24
1085
0
Jul 24
954
1
Mar 24
1055
4
Feb 24
3828
6
May 24
20539