Commit 757b99c
committed
[FIX] account_fiscal_position: adjust map_tax behavior for empty fiscal positions
In Odoo 19, all standard VAT taxes have fiscal_position_ids pointing to the domestic FP, which
makes the base map_tax() remove all taxes for empty FPs (the condition
`not self.tax_ids and taxes.fiscal_position_ids`). We avoid that by returning taxes as-is.
Delegating to domestic_FP.map_tax() is unsafe: if any tax in the domestic FP has
original_tax_ids configured (e.g. IVA 0% replacing IVA 21%), those replacements would be
incorrectly applied to all perception/withholding-only fiscal positions.
closes #1371
Signed-off-by: Katherine Zaoral - kz (#l10n) <kz@adhoc.com.ar>1 parent 14aee9f commit 757b99c
1 file changed
Lines changed: 15 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
117 | 127 | | |
118 | 128 | | |
119 | | - | |
| 129 | + | |
120 | 130 | | |
0 commit comments