Issue 11625

error test payment term
Nosy list
ced, david_auto, reviewbot, roundup-bot
Assigned to

Created on 2022-08-03.18:20:52 by david_auto, last changed 3 months ago by roundup-bot.


New changeset cf3cc4dd2aa1 by Cédric Krier in branch '6.4':
Require date to test payment term
New changeset 632f836e3358 by Cédric Krier in branch 'default':
Require date to test payment term
New changeset 9a2b0ae5129e by Cédric Krier in branch 'default':
Require date to test payment term
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-08-06.09:24:08

Since rev 44c2a67ad783, the date is no more optional.

Author: [hidden] (david_auto)
Date: 2022-08-03.18:20:51

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/", line 119, in dispatch_request
return endpoint(request, request.view_args)
File "/trytond/protocols/", line 46, in rpc
return methods.get(request.rpc_method, _dispatch)(
File "/trytond/", line 86, in auth_required
return wrapped(*args,
File "/trytond/protocols/", line 161, in wrapper
return func(request, pool, args, kwargs)
File "/trytond/protocols/", line 186, in _dispatch
result = rpc.result(meth(inst,
c_args, c_kwargs))
File "/trytond/model/fields/", line 124, in wrapper
return func(self, *args,
File "/trytond/modules/account_invoice/", line 380, in on_change_with_result
for date, amount in self.payment_term.compute(
File "/trytond/modules/account_invoice/", line 66, in compute
value_date = line.get_date(date)
File "/trytond/modules/account_invoice/", line 178, in get_date
date += relativedelta_.get()
TypeError: unsupported operand type(s) for +=: 'NoneType' and 'relativedelta'

Date User Action Args
2022-08-13 19:16:08roundup-botsetkeyword: - backport
messages: + msg77703
2022-08-08 22:25:56roundup-botsetmessages: + msg77646
2022-08-08 22:25:45roundup-botsetmessages: + msg77645
nosy: + roundup-bot
status: testing -> resolved
2022-08-08 22:24:58cedsetkeyword: + backport
2022-08-06 09:28:18reviewbotsetmessages: + msg77602
nosy: + reviewbot
2022-08-06 09:24:08cedsetassignedto: ced
keyword: + review
messages: + msg77601
nosy: + ced
reviews: 425511013
status: unread -> testing
type: crash
2022-08-03 18:20:52david_autocreate

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