Skip to Content
Menu
This question has been flagged
679 Views
Traceback (most recent call last):
  File "C:\Odoo\server\odoo\addons\base\models\ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "C:\Odoo\server\odoo\http.py", line 687, in dispatch
    result = self._call_function(**self.params)
  File "C:\Odoo\server\odoo\http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "C:\Odoo\server\odoo\service\model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "C:\Odoo\server\odoo\http.py", line 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "C:\Odoo\server\odoo\http.py", line 916, in __call__
    return self.method(*args, **kw)
  File "C:\Odoo\server\odoo\http.py", line 535, in response_wrap
    response = f(*args, **kw)
  File "C:\Odoo\server\odoo\addons\web\controllers\main.py", line 1335, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "C:\Odoo\server\odoo\addons\web\controllers\main.py", line 1327, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "C:\Odoo\server\odoo\api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "C:\Odoo\server\odoo\api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "C:\Odoo\server\odoo\models.py", line 6467, in onchange
    snapshot1 = Snapshot(record, nametree)
  File "C:\Odoo\server\odoo\models.py", line 6249, in __init__
    self.fetch(name)
  File "C:\Odoo\server\odoo\models.py", line 6259, in fetch
    self[name] = record[name]
  File "C:\Odoo\server\odoo\models.py", line 5866, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "C:\Odoo\server\odoo\fields.py", line 2603, in __get__
    return super().__get__(records, owner)
  File "C:\Odoo\server\odoo\fields.py", line 1054, in __get__
    self.recompute(record)
  File "C:\Odoo\server\odoo\fields.py", line 1243, in recompute
    self.compute_value(recs)
  File "C:\Odoo\server\odoo\fields.py", line 1265, in compute_value
    records._compute_field_value(self)
  File "C:\Odoo\server\odoo\addons\mail\models\mail_thread.py", line 410, in _compute_field_value
    return super()._compute_field_value(field)
  File "C:\Odoo\server\odoo\models.py", line 4248, in _compute_field_value
    getattr(self, field.compute)()
  File "C:\Odoo\server\odoo\addons\mrp\models\mrp_production.py", line 427, in _compute_production_location
    production.production_location_id = location_by_company.get(production.company_id.id)[0]
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Odoo\server\odoo\http.py", line 643, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "C:\Odoo\server\odoo\http.py", line 301, in _handle_exception
    raise exception.with_traceback(None) from new_cause
TypeError: 'NoneType' object is not subscriptable


Avatar
Discard
Author

my odoo is version 15, there is a delete button, i used the button, i didnt delete the order manually.