# Test Payment Terms fails

**URL:** https://discuss.tryton.org/t/test-payment-terms-fails/6979
**Category:** User
**Created:** [February 12, 2024, 10:09am UTC](https://discuss.tryton.org/t/test-payment-terms-fails/6979 "2024-02-12T10:09:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![CeJay67](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/ecc23a/32.png) [@CeJay67](https://discuss.tryton.org/u/CeJay67)
#### Post date: [February 12, 2024, 10:09am UTC](https://discuss.tryton.org/t/test-payment-terms-fails/6979/1 "2024-02-12T10:09:09Z")

</div>

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:

```auto
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?  
Thx,  
Christian

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 12, 2024, 10:15am UTC](https://discuss.tryton.org/t/test-payment-terms-fails/6979/2 "2024-02-12T10:15:07Z")

</div>

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

---

<div class="post-metadata">

### Author: ![CeJay67](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/c/ecc23a/32.png) [@CeJay67](https://discuss.tryton.org/u/CeJay67)
#### Post date: [February 12, 2024, 10:22am UTC](https://discuss.tryton.org/t/test-payment-terms-fails/6979/3 "2024-02-12T10:22:57Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 12, 2024, 10:28am UTC](https://discuss.tryton.org/t/test-payment-terms-fails/6979/4 "2024-02-12T10:28:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [March 13, 2024, 10:29am UTC](https://discuss.tryton.org/t/test-payment-terms-fails/6979/5 "2024-03-13T10:29:42Z")

</div>

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