Issue 11625

Title
error test payment term
Priority
bug
Status
resolved
Nosy list
ced, david_auto, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

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

Messages

New changeset cf3cc4dd2aa1 by Cédric Krier in branch '6.4':
Require date to test payment term
https://hg.tryton.org/modules/account_invoice/rev/cf3cc4dd2aa1
New changeset 632f836e3358 by Cédric Krier in branch 'default':
Require date to test payment term
https://hg.tryton.org/tryton-env/rev/632f836e3358
New changeset 9a2b0ae5129e by Cédric Krier in branch 'default':
Require date to test payment term
https://hg.tryton.org/modules/account_invoice/rev/9a2b0ae5129e
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/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-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)