'int' object has no attribute 'id'
Traceback (most recent call last):
File "/trytond/protocols/jsonrpc.py", line 123, in _marshaled_dispatch
response['result'] = dispatch_method(method, params)
File "/trytond/protocols/jsonrpc.py", line 156, in _dispatch
res = dispatch(*args)
File "/trytond/protocols/dispatcher.py", line 154, in dispatch
result = rpc.result(meth(*args, **kwargs))
File "/trytond/wizard/wizard.py", line 259, in execute
return wizard._execute(state_name)
File "/trytond/wizard/wizard.py", line 290, in _execute
result = self._execute(transition())
File "/trytond/wizard/wizard.py", line 271, in _execute
view['fields'].keys())
File "/trytond/wizard/wizard.py", line 87, in get_defaults
defaults.update(default(fields))
File "/trytond/modules/account_invoice/invoice.py", line 2310, in default_ask
self.start.amount, invoice.company.currency.id)
File "/trytond/modules/currency/currency.py", line 211, in compute
from_currency = cls(from_currency.id)
AttributeError: 'int' object has no attribute 'id'