Traceback (most recent call last):
File "/trytond/wsgi.py", line 117, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 47, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 84, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 159, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 186, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 88, in wrapper
result = func(self, *args, **kwargs)
File "/trytond/model/fields/field.py", line 123, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/account_invoice_defer/account.py", line 175, in on_change_invoice_line
if invoice.currency != self.company.currency:
File "/trytond/model/modelstorage.py", line 1459, in __getattr__
return super(ModelStorage, self).__getattr__(name)
File "/trytond/model/model.py", line 293, in __getattr__
raise AttributeError("'%s' Model has no attribute '%s': %s"
AttributeError: 'account.invoice.deferred' Model has no attribute 'company': <trytond.model.model.account.invoice.deferred._record object at 0x7fe4afd7e510>