Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Tryton Tryton
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 710
    • Issues 710
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 58
    • Merge requests 58
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • TrytonTryton
  • TrytonTryton
  • Issues
  • #11588
Closed
Open
Issue created Jul 05, 2022 by Adrià Tarroja Caubet@acaubetDeveloper

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)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking