Tryton - Issues

 

Issue7427

Title Can't add a statement line of payment made in a foreign currency
Priority bug Status unread
Superseder Nosy List nelghani
Type crash Components trytond
Assigned To Keywords
Reviews

Created on 2018-05-11.09:25:30 by nelghani, last changed by nelghani.

Files
File name Uploaded Type Edit Remove
StatementLineError.jpg nelghani, 2018-05-11.09:25:29 image/jpeg
Messages
msg40630 (view) Author: [hidden] (nelghani) Date: 2018-05-11.09:25:29
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
History
Date User Action Args
2018-05-11 09:25:30nelghanicreate

Showing 10 items. Show all history (warning: this could be VERY long)