← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 676537] Re: Reducing Decimal Places to zero still shows 7.00 days in reports and Products view

 

Hello Julian,

When we are using any float field by default framework will give the 2
decimal precision to it. So whenever you will change the shipping delay
to Digits 0 it will take default values of 2 precision. Here delay is a
float field. So it will go for default precision when you will declare
Digits 0 in shipping delay. I have checked the delay field with minimum
of Digits 1 and got the result 'Delivery Lead Time = 1.0' days
successfully.

Thanks.

** Changed in: openobject-addons
       Status: New => Invalid

-- 
Reducing Decimal Places to zero still shows 7.00 days in reports and Products view
https://bugs.launchpad.net/bugs/676537
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Invalid

Bug description:
Using up to date 6.0 trunk rev. 3934 for Addons

When setting 'Shipping delay' to 0 decimal places, I still see the term shown with two decimal places in Sales Order Report and Products view.

With decimal places addon installed.

To replicate:-
1. Create a new database
2. Administration -> Customisation-> Database Structure-> Decimal places
3. Change Shipping Delay (shouldnt this be Shipping Lead time?), to Digits 0
4. Create a new Sales Order or Quote, with standard demo product HDD2, you can still see in the Product view, 'Delivery Lead Time' = 1.00 days, not as should be derived 1 days
5. Click the Sale Order Printout from Reports right hand side of screen, the PDF report shows 1.00 days with the [[line.delay]] already added in the sales order lines.





Follow ups

References