Message 77275

Author
acaubet
Date
2022-07-05.13:44:40
Message id
77275

Content

Create a new invoice with no lines, create a new invoice tax line with some taxes. Post it.
Later on in account.reporting.aeat.vat_book report crashes as don't have any base_amount:

TypeError: conversion from NoneType to Decimal is not supported
  File "trytond/protocols/dispatcher.py", line 180, in _dispatch
    result = rpc.result(meth(*c_args, **c_kwargs))
  File "trytond/report/report.py", line 216, in execute
    groups[0], headers[0], data, action_report)
  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 975, in get_row
    cls.format_decimal(record.base_amount),
  File "trytond/modules/account_es/reporting_tax.py", line 927, in format_decimal
    n = Decimal(n)
History
Date User Action Args
2022-07-05 13:44:41acaubetsetmessageid: <1657021481.3082926.KQ2VVK2OKJ7JWZBH.issue11588@tryton.org>
2022-07-05 13:44:41acaubetlinkissue11588 messages
2022-07-05 13:44:40acaubetcreate

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