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

Dear odoo users

with my odoo16 community edition, for HR expense declaration, in case of choice "MIL",  I can't find the way to update the format of "unit price" which for me is the price per KM (or per mile accordingly). 

The format is float with 2 decimal rounded. 
I would need 3 or 4 decimals instead. 

I'm looking forward to reading you if you have some answers here
Thanks in advance
Luc

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

Hello

thanks for your response, 

+odoo restart , Tested OK, thanks !

I see that affects also all unit-prices (products, etc..) , not only the price per KM, But we can live with that. 

The problem is that the 2 decimal rounded is used for the expense calculation.
ex : when the price per km is entered and seems stored at 0.687€/km, the calculation for 100km is  70€ (and not  68.70€)

if you can advise...
Luc

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

Hi,

First, activate the developer mode, then navigate to Settings -> Technical -> Database Structure -> Decimal Accuracy, here you can see a record named Product Price, open it, and change the value of digits to 4.

Hope it helps,

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 11 17
4167
1
thg 4 21
4665
1
thg 9 20
3179
7
thg 6 20
22686
1
thg 1 20
3202