Reset to Bom button crash
Traceback (most recent call last):
File "/trytond/model/model.py", line 254, in __getattr__
return self._values[name]
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 104, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 48, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 72, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 131, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 202, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 89, in wrapper
result = func(self, *args, **kwargs)
File "/trytond/modules/production/production.py", line 379, in reset_bom
self.explode_bom()
File "/trytond/modules/production/production.py", line 304, in explode_bom
if not (self.bom and self.product and self.uom):
File "/trytond/model/modelstorage.py", line 1371, in __getattr__
return super(ModelStorage, self).__getattr__(name)
File "/trytond/model/model.py", line 257, in __getattr__
% (self.__name__, name, self._values))
AttributeError: 'production' Model has no attribute 'bom': None
Fault: 'production' Model has no attribute 'bom': None