Message 77553

Author
david_auto
Date
2022-08-03.18:20:51
Message id
77553

Content

In testing the payment term, by not putting the date that comes out blank, and it is not in bold because it is optional, an error appears when entering the amount

Traceback (most recent call last):
File "/trytond/wsgi.py", line 119, in dispatch_request
return endpoint(request, request.view_args)
File "/trytond/protocols/dispatcher.py", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/wsgi.py", line 86, in auth_required
return wrapped(*args,
kwargs)
File "/trytond/protocols/wrappers.py", line 161, in wrapper
return func(request, pool, args, kwargs)
File "/trytond/protocols/dispatcher.py", line 186, in _dispatch
result = rpc.result(meth(inst,
c_args, c_kwargs))
File "/trytond/model/fields/field.py", line 124, in wrapper
return func(self, *args,
kwargs)
File "/trytond/modules/account_invoice/payment_term.py", line 380, in on_change_with_result
for date, amount in self.payment_term.compute(
File "/trytond/modules/account_invoice/payment_term.py", line 66, in compute
value_date = line.get_date(date)
File "/trytond/modules/account_invoice/payment_term.py", line 178, in get_date
date += relativedelta_.get()
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'relativedelta'

History
Date User Action Args
2022-08-03 18:20:52david_autosetmessageid: <1659543652.146361.UUGS6NBNHK7XPVMV.issue11625@tryton.org>
2022-08-03 18:20:52david_autolinkissue11625 messages
2022-08-03 18:20:51david_autocreate

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