Error create sale line
Traceback (most recent call last):
File "/trytond/model/model.py", line 254, in __getattr__
return self._values[name]
KeyError: 'on_change_with_0'
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 728, in on_change_with
changes[fieldname] = getattr(self, method_name)()
File "/trytond/model/modelstorage.py", line 1369, in __getattr__
return super(ModelStorage, self).__getattr__(name)
File "/trytond/model/model.py", line 257, in __getattr__
% (self.__name__, name, self._values))
AttributeError: 'sale.line' Model has no attribute 'on_change_with_0': {'quantity': None, 'sale': Pool().get('sale.sale')(2), 'type': 'line', 'unit': None, 'unit_price': None, 'product': None}