Test Payment Terms fails

Hi everyone,
I’m new to the forum.
I’m trying to evaluate whether tryton is suitable for our company. I have installed Tryton 7.0 on an Ubuntu virtual server and have added some modules that I think I need. Including the German chart of accounts skr04. The server is running and can be accessed on the LAN via both the client and the browser. So far so good.
After I have made the basic settings for our company and the accounting, I am in the process of setting up the payment conditions.
I created a rule “30 days net” and set the Remainder to 30 days.
When I run “Test Payment Term” I get the following error message:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 109, in dispatch_request
    return endpoint(request, **request.view_args)
  File "/trytond/protocols/dispatcher.py", line 43, in rpc
    return methods.get(request.rpc_method, _dispatch)(
  File "/trytond/wsgi.py", line 75, in wrapper
    return func(request, *args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 197, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 201, in _dispatch
    result = rpc.result(meth(inst, *c_args, **c_kwargs))
  File "/trytond/model/fields/field.py", line 203, in wrapper
    setattr(self, fieldname, value)
  File "/trytond/model/fields/one2many.py", line 303, in __set__
    records = instanciate_values(Target, value, **extra)
  File "/trytond/model/fields/field.py", line 176, in instanciate_values
    return tuple(instance(x) for x in (value or []))
  File "/trytond/model/fields/field.py", line 176, in <genexpr>
    return tuple(instance(x) for x in (value or []))
  File "/trytond/model/fields/field.py", line 175, in instance
    return Target(data, **extra, **kwargs)
  File "/trytond/model/model.py", line 278, in __init__
    id = int(id)
ValueError: invalid literal for int() with base 10: 'add'

Fault: invalid literal for int() with base 10: 'add'

I’m not a programmer, so someone can give me a hint what is going wrong?

This is a known bug that was fixed: Test payment term wizard crashes (#12775) · Issues · Tryton / Tryton · GitLab
But it seems I forgot to backport it in 7.0 series.

1 Like

Hi Cedric,
thanks for the quick reply.
Does that mean that the rule works, but the test doesn’t? Have I understood that correctly?

I do not know if your rule works but the test does not without the fix.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.