File "/home/laron/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/view/form.py", line 616, in button_clicked
self.screen.button(widget.attrs)
File "/home/laron/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/screen/screen.py", line 1199, in button
if not record.validate(fields, pre_validate=domain):
File "/home/laron/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/model/record.py", line 420, in validate
if not field.validate(self, softvalidation, pre_validate):
File "/home/laron/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/model/field.py", line 884, in validate
test = super(O2MField, self).validate(record, softvalidation,
File "/home/laron/.local/lib/python3.8/site-packages/tryton/gui/window/view_form/model/field.py", line 115, in validate
unique, leftpart, value = unique_value(
File "/home/laron/.local/lib/python3.8/site-packages/tryton/common/domain_inversion.py", line 431, in unique_value
value = value if operator == '=' and single_value else value[0]
TypeError: 'int' object is not subscriptable