Disable Decimal Points in OpenERP


Sometimes it may requires that you don’t want to see number with decimal into OpenERP. OpenERP is using “Floatdatatype everywhere and it is not feasible and possible to change datatype. For example, in multi currency environment, you may require to remove decimal numbers in some of the currency. To overcome from this problem, we have come with generic solution which makes your work very easy.

Let’s see some OpenERP form where you can see numbers with decimal before using this feature.
We have added new field for configuration into language.

view_decimal-1

This is “List View” with float type fields and also with sum of those values.

view_decimal-2

This form contains numbers with decimal into “List View” and also display with currency in Total.

view_decimal-3

This is form view with some float type fields.

view_decimal-4

Now, we are going to make unchecked “View Decimal” field from Language form. And reload OpenERP interface.

view_decimal-5

view_decimal-6

view_decimal-7

view_decimal-8

Now, it is very easy for end users to disable “decimal points” from OpenERP.

 

Advertisements