[10.0][FIX] l10n_it_intrastat_statement: force round to 1 additional_units field only if has a value #2232
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Descrizione del problema o della funzionalità:
Comportamento attuale prima di questa PR:
in fase di ricalcolo della dichiarazione intrastat si verifica un arrotondamento forzato al valore 1 per il campo additional_units anche se questo non è valorizzato.
Comportamento desiderato dopo questa PR:
l'arrotondamento forzato a 1 verrà fatto solo se il campo è valorizzato, e quindi con valori compresi tra 0.1 e 0.4
--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing