Unable to create invoice with sao
When creating a new invoice on trunk version of sao I get the following traceback:
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 191, 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: 'account.invoice' Model has no attribute 'on_change_with_0': {'currency': Pool().get('currency.currency')(24), 'company': Pool().get('company.company')(1)}
This was introduced with #8234 (closed)