l10n_it_vat_registries : Divisione per zero causata da IVA non detraibile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenERP Italia |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Discussione Forum da cui è partito il bug: http://
Il bug (sembra) che si presenti per i valori di iva indetraibile (anche se non ne sono convinto) .... L'errore riportato è:
<code>
Traceback (most recent call last):
File "/opt/openerp/
**self.
File "/usr/lib/
return runtime.
File "/usr/lib/
_render_
File "/usr/lib/
_exec_template(
File "/usr/lib/
callable_(context, *args, **kwargs)
File "memory:
%for line in tax_lines(object) :
File "/opt/openerp/
move_line.
ZeroDivisionError: float division
</code>
Related branches
- OpenERP Italia core devs: Pending requested
-
Diff: 20 lines (+5/-2)1 file modifiedl10n_it_vat_registries/invoice.py (+5/-2)
- Sergio Corato (community): Disapprove
-
Diff: 20 lines (+5/-2)1 file modifiedl10n_it_vat_registries/invoice.py (+5/-2)
Changed in openobject-italia: | |
status: | Incomplete → Confirmed |
status: | Confirmed → Fix Committed |
Changed in openobject-italia: | |
status: | Fix Committed → Fix Released |
Scusate ma launchpad è una delle cose più brutte che mente umana abbia concepito... continuo qui quello che stavo scrivendo:
Mi sono fatto stampare le variabili interessate:
line.tax_code_id.id 64 base_code_ id.id 64 line_amount_ with_sign( line) 0.0
main_tax.
self._get_
main_tax.amount -0,2000
base_amount 0.0
actual_tax_amount -0.0
Il tax code corrisponde nella tabella account_tax:
a: "Iva al 21% indetraibile (D)";
che ha come amount: 0.0000;
Ma ce ne sono altre che hanno 0 ...