Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2270 Weergaven

Getting this Error while trying to create a manufacturing order. What is the issue?

Traceback (most recent call last):
  File "/home/odoo/src/odoo/saas-16.1/odoo/http.py", line 1680, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File "/home/odoo/src/odoo/saas-16.1/odoo/service/model.py", line 134, in retrying
    result = func()
  File "/home/odoo/src/odoo/saas-16.1/odoo/http.py", line 1707, in _serve_ir_http
    response = self.dispatcher.dispatch(rule.endpoint, args)
  File "/home/odoo/src/odoo/saas-16.1/odoo/http.py", line 1904, in dispatch
    result = self.request.registry['ir.http']._dispatch(endpoint)
  File "/home/odoo/src/odoo/saas-16.1/odoo/addons/base/models/ir_http.py", line 154, in _dispatch
    result = endpoint(**request.params)
  File "/home/odoo/src/odoo/saas-16.1/odoo/http.py", line 709, in route_wrapper
    result = endpoint(self, *args, **params_ok)
  File "/home/odoo/src/odoo/saas-16.1/addons/web/controllers/dataset.py", line 28, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/saas-16.1/addons/web/controllers/dataset.py", line 24, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/src/odoo/saas-16.1/odoo/api.py", line 461, in call_kw
    result = _call_kw_multi(method, model, args, kwargs)
  File "/home/odoo/src/odoo/saas-16.1/odoo/api.py", line 448, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-16.1/odoo/models.py", line 6560, in onchange
    snapshot1 = Snapshot(record, nametree)
  File "/home/odoo/src/odoo/saas-16.1/odoo/models.py", line 6320, in __init__
    self.fetch(name)
  File "/home/odoo/src/odoo/saas-16.1/odoo/models.py", line 6330, in fetch
    self[name] = record[name]
  File "/home/odoo/src/odoo/saas-16.1/odoo/models.py", line 5898, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/home/odoo/src/odoo/saas-16.1/odoo/fields.py", line 2778, in __get__
    return super().__get__(records, owner)
  File "/home/odoo/src/odoo/saas-16.1/odoo/fields.py", line 1160, in __get__
    self.recompute(record)
  File "/home/odoo/src/odoo/saas-16.1/odoo/fields.py", line 1349, in recompute
    self.compute_value(recs)
  File "/home/odoo/src/odoo/saas-16.1/odoo/fields.py", line 1371, in compute_value
    records._compute_field_value(self)
  File "/home/odoo/src/odoo/saas-16.1/addons/mail/models/mail_thread.py", line 399, in _compute_field_value
    return super()._compute_field_value(field)
  File "/home/odoo/src/odoo/saas-16.1/odoo/models.py", line 4208, in _compute_field_value
    fields.determine(field.compute, self)
  File "/home/odoo/src/odoo/saas-16.1/odoo/fields.py", line 97, in determine
    return needle(*args)
  File "/home/odoo/src/odoo/saas-16.1/addons/mrp/models/mrp_production.py", line 477, in _compute_production_location
    production.production_location_id = location_by_company.get(production.company_id.id)[0]
TypeError: 'NoneType' object is not subscriptable

The above server error caused the following client error:
null


Avatar
Annuleer
Beste antwoord

Hi,

From the shared traceback it seems you are using saas 16.1, which i hope it will be odoo online and i expect there is no custom codes in it.


Can you provide detailed steps to reproduce the issue or try to see if the same can be reproduced in odoo runbot, if yes, please create a support ticket at: https://www.odoo.com/help or create an issue here in github:  https://github.com/odoo/odoo/issues


Thanks

Avatar
Annuleer
Auteur

Hi Niyas, I get this error when i hit "new" while creating a manufacturing order. I don’t exactly recall if I made any changes that lead to this error and yes it is V16,online.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mei 24
1890
0
mei 24
1451
0
mei 24
2275
2
mrt. 23
2431
1
nov. 22
4237