Files
odoo_source/addons
Andrea Grazioso (agr-odoo) fc213e5c66 [FIX] account: clear epd discount tax
Set "Cash Discount Tax Reduction" to "Always"
Have Tax A and Tax B
Create an invoice with a payment term having a discount (example: 2/7 Net 30)
Add the following lines
1) Any prod, Tax A
2) Any prod, Tax B
In journal items tab we will see 2 line for the product,
2 for tax, 3 for epd, 2 for epd tax discount, 1 for payment
Delete line 2)
Check journal items

Issue: epd discount for tax B is still there
This occurs because:
- When calculating the epd vals we don't actually
issue a clear command
- Due to a `_sync_dynamic_line` optimization
we may write on a line scheduled for delete instead of creating a new
one
As result an old tax may be left in the overwritten line

opw-3285534

closes odoo/odoo#123697

X-original-commit: bc83baf7d6be3a9ab25da90ddf1882c1cb95217e
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2023-06-05 16:17:09 +02:00
..
2023-05-11 18:25:38 +02:00
2023-05-10 19:16:47 +02:00
2023-05-10 18:16:24 +02:00
2023-05-10 18:16:21 +02:00
2023-05-10 20:15:02 +02:00
2023-05-10 20:14:59 +02:00
2023-05-11 18:24:53 +02:00
2023-05-10 20:15:12 +02:00
2023-05-11 10:40:53 +02:00
2023-05-11 10:40:55 +02:00
2023-05-10 18:16:19 +02:00
2023-05-31 09:23:27 +02:00
2023-05-17 16:48:30 +02:00
2023-05-12 09:21:49 +02:00
2023-06-05 14:50:05 +02:00
2023-06-02 22:29:36 +02:00