Salut,
Je développe un module personnalisé. A chaque fois que je change quelque chose et restart le serveur, j'obtiens cette erreur :
Erreur:
Odoo Server Error
Traceback (most recent call last):
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\api.py", line 753, in get
value = self._data[field][record._ids[0]]
KeyError: 706
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\fields.py", line 955, in __get__
value = env.cache.get(record, self)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\api.py", line 759, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.actions.act_window(706,).search_view', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\tools\pycompat.py", line 14, in reraise
raise value
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\service\model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 909, in __call__
return self.method(*args, **kw)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\http.py", line 510, in response_wrap
response = f(*args, **kw)
File "c:\users\arsene.poutsi\appdata\local\programs\odoo-master\addons\web\controllers\main.py", line 1639, in load
action = request.env[action_type].browse([action_id]).read()
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\addons\base\models\ir_actions.py", line 204, in read
result = super(IrActionsActWindow, self).read(fields, load=load)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\models.py", line 2900, in read
vals[name] = convert(record[name], record, use_name_get)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\models.py", line 5564, in __getitem__
return self._fields[key].__get__(self, type(self))
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\fields.py", line 979, in __get__
self.compute_value(recs)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\fields.py", line 1060, in compute_value
records._compute_field_value(self)
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\models.py", line 3880, in _compute_field_value
getattr(self, field.compute)()
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\addons\base\models\ir_actions.py", line 171, in _compute_search_view
fvg = self.env[act.res_model].fields_view_get(act.search_view_id.id, 'search')
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\api.py", line 471, in __getitem__
return self.registry[model_name]._browse(self, (), ())
File "C:\Users\arsene.poutsi\AppData\Local\Programs\Odoo-master\odoo\modules\registry.py", line 175, in __getitem__
return self.models[model_name]
KeyError: 'stock.picking.type'
Pourquoi cela arrive-t-il? L'erreur contient-elle des informations qui pourraient être utilisées pour résoudre ce problème?