None values crashes on vat_book_es report
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)