Message 77280

Author
acaubet
Date
2022-07-06.12:56:13
Message id
77280

Content

Another crash we found with a party with null name:

Traceback (most recent call last):
  File "/trytond/wsgi.py", line 117, 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 84, in auth_required
    return wrapped(*args, **kwargs)
  File "/trytond/protocols/wrappers.py", line 159, in wrapper
    return func(request, pool, *args, **kwargs)
  File "/trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "/trytond/report/report.py", line 215, in execute
    oext, content = cls._execute(
  File "/trytond/report/report.py", line 233, in _execute
    return cls.convert(action, cls.render(action, report_context))
  File "/trytond/modules/account_es/reporting_tax.py", line 911, in render
    return cls.render_csv(report, report_context)
  File "/trytond/modules/account_es/reporting_tax.py", line 945, in render_csv
    writer.writerow(cls.get_row(record, report_context))
  File "/trytond/modules/account_es/reporting_tax.py", line 972, in get_row
    record.party.name[:40],
TypeError: 'NoneType' object is not subscriptable

Fault: 'NoneType' object is not subscriptable
History
Date User Action Args
2022-07-06 12:56:13acaubetsetmessageid: <1657104973.540794.STLYRB2TWB44XJS4.issue11588@tryton.org>
2022-07-06 12:56:13acaubetsetrecipients: + pokoli, reviewbot
2022-07-06 12:56:13acaubetlinkissue11588 messages
2022-07-06 12:56:13acaubetcreate

Showing 10 items. Show all history (warning: this could be VERY long)