Can't add a statement line of payment made in a foreign currency
When saving a statement line of a paiement in a forein currency tryton raises an error message if the related invoice is selected.
Traceback (most recent call last):
File "/trytond/wsgi.py", line 71, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 42, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 122, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 172, in _dispatch
result = rpc.result(meth(inst, *c_args, **c_kwargs))
File "/trytond/model/modelview.py", line 669, in on_change
method()
File "/trytond/model/modelview.py", line 84, in wrapper
result = func(self, *args, **kwargs)
File "/trytond/model/fields/field.py", line 113, in wrapper
return func(self, *args, **kwargs)
File "/trytond/modules/account_statement/statement.py", line 306, in on_change_lines
amount_to_pay = invoice_id2amount_to_pay[line.invoice.id]
KeyError: 32
Test made with tryton 4.8
Server : demo4.8.tryton.org
Files
Download | Creator | Timestamp | Type |
---|---|---|---|
StatementLineError.jpg | @nelghani | 2018-05-11 07:25:29.948000 UTC | image/jpeg |