This question has been flagged
1936 Views

I installed  `account_tax_balance` module in Odoo 10. It's working fine. Now i need to print it. I created a report and template, but when i print it the amount shows as `0.0`. Why and How can i resolve this?

      <report id="account_report_tax_balances1"

    model="account.tax"

    report_type="qweb-pdf"

    file="account_tax_balance.report_tax_balances"

    name="account_tax_balance.report_tax_balances"

    string="Tax Balances"

    />



    <template id="report_tax_balances">

      <t t-call="report.html_container">

            <t t-call="report.external_layout">

              <div class="page">

                <div class="row">

                  <div class="col-xs9">

                    <span> <t t-esc="docs"/></span>

                  </div>

                </div>

            <table class="table ">

              <thead>

                <tr>

                  <th>Tax Name</th>

                  <th>Description</th>

                  <th>Account</th>

                  <th>Balance</th>

                  <th>Base Balance</th>

                  <th>Balance Refund</th>

                  <th>Base Balance Refund</th>

                  <th>Total Balance</th>

                  <th>Total Base Balance</th>

                </tr>

              </thead>

              <tbody>

                <tr t-foreach="docs" t-as="o">

                  <td><span t-field="o.name"/></td>

                  <td><span t-field="o.description"/></td>

                  <td><span t-field="o.account_id"/></td>

                  <td><span t-field="o.balance_regular" t-options='{"widget": "monetary", "display_currency": o.company_id.currency_id}'/></td>

                  <td><span t-field="o.base_balance_regular"/></td>

                  <td><span t-field="o.balance_refund"/></td>

                  <td><span t-field="o.base_balance_refund"/></td>

                  <td><span t-field="o.balance"/></td>

                  <td><span t-field="o.base_balance"/></td>

                  <td><t t-esc="o.base_balance"/></td>

                </tr>

              </tbody>

            </table>

          </div>

        </t>

        </t>

    </template>


Avatar
Discard