'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/model/modelview.py", line 531, in wrapper
return func(cls, *args, **kwargs)
File "/trytond/model/workflow.py", line 33, in wrapper
result = func(cls, filtered, *args, **kwargs)
File "/trytond/modules/account_invoice/invoice.py", line 1196, in open
invoice.create_move()
File "/trytond/modules/account_invoice/invoice.py", line 831, in create_move
val = self._get_move_line(date, amount)
File "/trytond/modules/account_invoice/invoice.py", line 786, in _get_move_line
self.company.currency.id, amount, self.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'