Skip to content

[16.0] account_invoice_fiscal_position_update wrong computation if B2C / B2B mapping. #1896

@legalsylvain

Description

@legalsylvain

Module

account_invoice_fiscal_position_update

Describe the bug

when fiscal position is mapping VAT Inc -> VAT Exc (or no vat), the computations of the prices are wrong.

As a result, select product then set fiscal position generates a differente invoice as select fiscal position then, select product.

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. Configure a fiscal position with VAT excl -> VAT excl mapping and Vat INCL -> Vat Excl mapping.

(this is the case, by default with INTRA-EU B2B fiscal position installed by odoo l10n_fr localization).

Image

  1. Create 2 product, one with vat Incl and the other with vat Excl

Image

  1. Create an Invoice, add the two products. (The untaxed amount is 834.33)

Image

  1. Set the fiscal position. The Untaxed amount of the invoice changed. (Now 1001.00)

Image

Expected behavior

If we set first the fiscal position and then select product the result is the following, and is the good one. (834.33)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions