Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Decimal Precision Per Currency

By
Riadh KAABI
on 5/15/16, 10:15 AM 399 views

Hello,

is it possible to attribute decimal precion per currency in odoo 8?

In my case, in multi-currency configuration, i use 2 currency EUR (2 digits)  and   TND ( 3 digits); in quotation form decimal precision must change when user select  currency. exemple 10.235 TND become 10.23€


Thank you for your help


1

Bejaoui Souheil

--Bejaoui Souheil--
808
| 2 1 4
Sousse, Tunisia
--Bejaoui Souheil--

Odoo developer,  functional and technical consultant

souheil_bejaoui@hotmail.fr

Bejaoui Souheil
On 5/16/16, 6:29 AM

Hi,

This behavior is not possible in odoo. But you can set Rounding Factor for TND to 0.001000 and 0.010000 for the EUR.

In this case the system will display 10.235 TND, 10.230€

 

0
Riadh KAABI
On 5/16/16, 8:30 AM

Hello,

Thank you for the answer,

 it's exactly what i have done temporarily , but is not clean to see i amount in € with 3 digits in form and report

Thanks for your help

In this case you may need to override the method precision_get in addons/decimal_precision/decimal_precision.py and try to give more criteria to the select sentence.

Bejaoui Souheil
on 5/17/16, 6:38 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/15/16, 10:15 AM
Seen: 399 times
Last updated: 5/16/16, 8:30 AM