Skip to content
Snippets Groups Projects
Commit 75a122bb authored by Adrien Widart's avatar Adrien Widart
Browse files

[FIX] repair: filter taxes with current company


When adding a product to a repair order, the module automatically adds
all product's taxes, even if some taxes belong to other companies.

To reproduce the error
(Need 2 companies C01 and C02. Let C01 be the current company)
1. Create a product P
    - Must have a tax T_C01
2. Switch to C02
3. Edit P
    - Add a tax T_C02
4. Activate C01
5. Create a Repair Order
    - Add a customer
    - Add a line with product P

Error: Both T_C01 and T_C02 are added. However, since C02 is the current
company, T_C01 should not be added.

(Similar issue possible with `repair.fee`)

OPW-2486791
closes #68079

closes odoo/odoo#70319

X-original-commit: 6b93d5aa
Signed-off-by: default avatarSteve Van Essche <svs-odoo@users.noreply.github.com>
Signed-off-by: default avatarAdrien Widart <adwid@users.noreply.github.com>
parent 2b3ad9bf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment