Tryton - Issues



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

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

File name Uploaded Type Edit Remove
StatementLineError.jpg nelghani, 2018-05-11.09:25:29 image/jpeg
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/", line 71, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/", line 41, in rpc
    request, database_name, *request.rpc_params)
  File "/trytond/", line 42, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/", line 122, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/", line 172, in _dispatch
    result = rpc.result(meth(inst, *c_args, **c_kwargs))
  File "/trytond/model/", line 669, in on_change
  File "/trytond/model/", line 84, in wrapper
    result = func(self, *args, **kwargs)
  File "/trytond/model/fields/", line 113, in wrapper
    return func(self, *args, **kwargs)
  File "/trytond/modules/account_statement/", line 306, in on_change_lines
    amount_to_pay = invoice_id2amount_to_pay[]
KeyError: 32

Test made with tryton 4.8
Server :
Date User Action Args
2018-05-11 09:25:30nelghanicreate

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