Skip to Content

Contributors

RE: Want tax move line with zero balance, possible? (odoo 13)

We also have zero tax lines in Belgium and no need for aml with debit/credit 0.

I support Pedro here, with correct reports you solve the issue.

Cf. https://github.com/Noviat/noviat-apps/tree/13.0/l10n_be_coa_multilang

 

From: Pedro M. Baeza (Tecnativa) <pedro.baeza@tecnativa.com>
Sent: Wednesday, 17 June 2020 19:47
To: Contributors <contributors@odoo-community.org>
Subject: Re: Want tax move line with zero balance, possible? (odoo 13)

 

I think the need of that aml with 0 is because the tax engine / exporter is not considering the amls for the base on the said field. We are doing that way on our tax engine for Spanish legislation without problem:

 

 

The overall logic is:

 

- There are amls with tax_line_id field with that tax: the tax fee.

- There are amls with tax_ids field with that tax: the tax base.

 

Regards.


by Luc De Meyer. - 08:06 - 17 Jun 2020

Reference

  • Want tax move line with zero balance, possible? (odoo 13)
    Dear community,

    With Tax Exemption we need to set tax with zero percent. On invoice line, use will need to choose this Tax. And expect that it will also declared on tax report.

    Normally, as I see in this core code, Odoo just don't create move line if tax amount is zero. This oppose our need.

    def _recompute_tax_lines(self, recompute_tax_base_amount=False):
                .......
                # Don't create tax lines with zero balance.
                if self.currency_id.is_zero(taxes_map_entry['balance']) and self.currency_id.is_zero(taxes_map_entry['amount_currency']):
                    taxes_map_entry['grouping_dict'] = False

    Any OCA module that do by pass this? Does this make sense to you if I will create one, or there is better way ??

    Many thanks,
    Kitti


    by Kitti Upariphutthiphong - 05:55 - 17 Jun 2020