← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

On 19/11/10 05:43, Saz(OpenERP) wrote:
> 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.
Hello

I am still trying to puzzle this out. If you set shipping delay to 
digits to in the Decimal Precision surely it should do what it says, ie 
set the number of digits to 0.

When you say :-

/So it will go for default precision when you will declare Digits 0 in shipping delay.
/

it seems to not agree with what you say in the first paragraph, ie

/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/

I am more interested in just getting this work at the moment. Can you 
explain step by step how you can get shipping delays with NO decimal 
places, as we require ? ie 7 days not 7.00 days. I'm sure others would 
need to know how to achieve this.

-- 
Kind Regards,

Julian Robbins

-- 
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.





References