Contributors mailing list archives
Re: Want tax move line with zero balance, possible? (odoo 13)by
Juan José Scarafía
I understand and share Kitti needs. For me it would be better to have this line as aml. I understand that normally you don't need aml of 0. But on odo an aml is not just an aml, is an invoice line / tax line somehow.
If I understand correctly what Pedro suggest, that helps on financial reports. Or there is some generic method to get tax amounts and tax base amounts from aml's?
In our case, we need this information also in two cases:
* to build txt files related to invoices
* to build the xml for electronic invoice
Actually we get the amounts from aml for any tax not zero but then we need to get the base amounts "manually" for zero taxes.
For me it would be much clearer and easier if we just have an aml of 0 for zero taxes also. But I've lose this fight two many times :p
Actually we would need this line not only if the tax rate is 0, but also if the computed tax is zero (for example a line of 0,01 with VAT 21%, the rounded vat amount is zero and no line is created)
Also oidoo is "simulating" this zero lines on the new tax widget, I haven't analyze it yet, but I believe that code would be easier if an aml of zero would be there
On Wed, Jun 17, 2020 at 1:52 PM Pedro M. Baeza (Tecnativa) <firstname.lastname@example.org> wrote:
The field tax_line_ids in account.move.line is filled with the 0-tax ID for the journal item that represents the base amount for the tax.Example of tax: https://github.com/odoo/odoo/blob/517a13b967a07fe1e71b9c5308d185c4e45f1a2d/addons/l10n_es/data/account_tax_data.xml#L1073-L1106Regards.
Ecosoft Co. Ltd., Kitti Upariphutthiphong