Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6577 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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€

 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ

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.