round issue when precision digits=0

Bug #1295991 reported by Ivan Yelizariev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:
* install v8
* install sale module
* create quotation
* set rights to discount per line
* set discount = 10 for some line
* set digits=0 at decimal precision for Discount
* print report for quotation

you will see Disc.(%) 1 instead Disc.(%) 10

But If I set discount = 12, then at report I get Disc.(%) 12

Revision history for this message
Ivan Yelizariev (yelizariev) wrote :

I should to note, that at backend (quotation view) there is correct value for discount

Revision history for this message
Ivan Yelizariev (yelizariev) wrote :

Also, there is a solution to show only integer part at qweb report:
* set none zero value for digits at decimal precision for Discount
* use formatLang at report
<span t-esc="formatLang(l.discount, digits=0)"/>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.