Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
5 Antworten
5329 Ansichten

Odoo V12, Moduls: Purchase, Inventory, Sales, Invoicing

Most of the products we sell are sold in KRW (wons). For that currency decimals are useless. Through the General Settings, I could access to the Currency set-ups (i.e. res.currency) and set the Rounding Factor to 1.000000 instead of 0.010000. 

Since, I do not see the decimals anymore for KRW currency, except for the products pages (i.e. product.template) where I still have 2 decimals.

Any idea on how to fix it for products?

Thanks,


Avatar
Verwerfen
Autor Beste Antwort

Thanks a lot for your replies.

To Avinash Nk: Not solving my issue because the change is applied for all currencies. In our business we use 4 currencies and the only one we do not need decimals is the KRW (won).

To Paresh W:  Not solving my issue. The Decimal Place field is right below the Rounding Factor field and it is not possible to directly set it. When changing the value from 0.010000 to 1.000000 in the Rounding Factor Field, the value from the Decimal Place field automatically changes from 2 to 0. 


Avatar
Verwerfen

I have the same issue with KRW how did you get it solved we also have multiple currency and only KRW does not require decimals

Beste Antwort

Not sure whether it relates to the listed problem, but I had similar issue with KRW when using groupby sum on a tree view. There were useless decimals on the grouped value. This was the code I was using:

in python code: teacher_salary = fields.Monetary(compute="_compute_stats", store=True)
in xml code: field name="teacher_salary"

I changed it to this and it worked:

in python code: teacher_salary = fields.Float(compute="_compute_stats", store=True, digits=(14, 0))
in xml code: field name="teacher_salary" widget="monetary"

Avatar
Verwerfen
Beste Antwort

been 4 yrs, still not improve it. Shame.

Avatar
Verwerfen
Beste Antwort

Hi: There is another field "Decimal Places" on the res.currency form. The default value of this field is 2. You may want to change this to 0.

Avatar
Verwerfen
Autor

Hello. I would love to help but we never fixed. From what I understood no easy way to do here. You must develop a module to change it only for one currency.

Beste Antwort

Hi,

Activate Developer mode.

Go to Settings --> Technical --> Database Structure --> Decimal Accuracy

There you can find Product price record.

Change the value of field Digits to 0


Thanks

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Sept. 25
355
1
Aug. 25
564
2
Juni 25
2019
0
März 25
1880
0
Feb. 25
1427