error test payment term
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'