Skip to content

Calculate Tax line by line option is not working on the Customer Invoice. #9

@amkarthik

Description

@amkarthik

@fhe-odoo
I see that the option to calculate the taxes on lines is set to Invisible.
https://github.com/fhe-odoo/avatax_connector/blob/eecce5a4e14e7c93a851491172bebbf1a35d73c4/avatax_connector/views/avalara_salestax_view.xml#L51
May I know the reason that why we are not allowing users to enable that?
We need this for one of our customer.

Even though, I customized the code and enabled the option.
It works good for Sales Order.
But in the customer Invoice, tax on lines are not calculated. But the global taxes are calculated.
I reviewed the code. I guess that the problem relies in wrong method name.
Please see https://github.com/fhe-odoo/avatax_connector/blob/10.0/avatax_connector/models/account_invoice.py#L175
The method name has to be compute_taxes I guess.
Forgive me I am wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions