Error when opening invoices

I’m facing more trouble with invoicing services:
When trying to post a service invoice (with prices manually filled in before) I get there messages:

  File "/home/wd/TRYTON/70-realprod/lib/python3.10/site-packages/tryton/gui/window/view_form/view/", line 616, in button_clicked
  File "/home/wd/TRYTON/70-realprod/lib/python3.10/site-packages/tryton/gui/window/view_form/screen/", line 1199, in button
    if not record.validate(fields, pre_validate=domain):
  File "/home/wd/TRYTON/70-realprod/lib/python3.10/site-packages/tryton/gui/window/view_form/model/", line 420, in validate
    if not field.validate(self, softvalidation, pre_validate):
  File "/home/wd/TRYTON/70-realprod/lib/python3.10/site-packages/tryton/gui/window/view_form/model/", line 886, in validate
    test = super(O2MField, self).validate(record, softvalidation,
  File "/home/wd/TRYTON/70-realprod/lib/python3.10/site-packages/tryton/gui/window/view_form/model/", line 115, in validate
    unique, leftpart, value = unique_value(
  File "/home/wd/TRYTON/70-realprod/lib/python3.10/site-packages/tryton/common/", line 431, in unique_value
    value = value if operator == '=' and single_value else value[0]

TypeError: 'int' object is not subscriptable

Hope this helps to narrow down the problem.


Seams the same reported on #12843.

Are you opening Invoices from the relate of a sale? if so, It’s the same.

True. I can post it when opening it from accounting > invoices > customer invoices directly.

Thanks !