wrong undeductible tax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Italia |
Expired
|
Undecided
|
Unassigned |
Bug Description
Randomly, software report follow wrong error message:
"The taxes %s have different rates"
As in example file, undeductible tax has 2 sub codes, first with suffix a for undeductible rate and last with suffix b for deductible rate.
The last one has type = 'balance' in order to receive all residual amount.
The wrong code at line 35, property '_have_same_rate' does not check for this condition and returns a unpredictable value, as is randomly recorded.
Suggested correction:
<code>
for account_tax in account_taxes: # <- Code un changed
if account_tax.type != 'balance': # Check for balance type
if rate is None: # <- code unchanged
</code>
Related branches
- Davide Corio (community): Approve (code review, no test)
- Lorenzo Battistini: Approve (code review)
-
Diff: 51 lines (+12/-7)3 files modifiedl10n_it_partially_deductible_vat/AUTHORS.txt (+3/-2)
l10n_it_partially_deductible_vat/__openerp__.py (+1/-1)
l10n_it_partially_deductible_vat/account.py (+8/-4)
Ciao Antonio,
in order to confirm the bug, we need the steps to reproduce it.
Thanks