diff options
| author | Adrien Widart <awt@odoo.com> | 2021-04-28 09:01:24 +0000 |
|---|---|---|
| committer | Adrien Widart <awt@odoo.com> | 2021-05-04 12:54:54 +0000 |
| commit | 75a122bbae3a32bfa79da3506179fc63a8bced5d (patch) | |
| tree | c2d2d7142fd566a586efed2da47c27a88f1681be /doc/_extensions/pyjsparser/pyjsparserdata.py | |
| parent | 2b3ad9bfa9459b8e39d769afa8fa61ceef925c75 (diff) | |
[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: 6b93d5aadc7ac8251468292c9e55eedfc95e9f64
Signed-off-by: Steve Van Essche <svs-odoo@users.noreply.github.com>
Signed-off-by: Adrien Widart <adwid@users.noreply.github.com>
Diffstat (limited to 'doc/_extensions/pyjsparser/pyjsparserdata.py')
0 files changed, 0 insertions, 0 deletions
