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

Hi there 

 for date export from ODOO in xls format , can I may make it default that once I open the XLS, they are appeared to be rounded up to 4 decimal places ?

thank you 

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

Hi steve,

Wanted to know like did you get any solution for this as i'm also facing the same issue in odoo18

Câu trả lời hay nhất

Hi,

In Odoo, if you want your exported XLS to always show numbers rounded to 4 decimal places, you can configure it through Technical → Database Structure → Decimal Accuracy, where Odoo defines how many digits to keep for each type of value (e.g., Product Price, Discount, Quantity, etc.). Once you set the precision to 4 for the relevant field type, Odoo will automatically round values to 4 decimals in exports, reports, and views, instead of exporting the raw float values.


Steps:


1.Go to Settings → Technical → Database Structure → Decimal Accuracy.


2. Find the record (e.g., "Product Price", "Quantity", "Discount") depending on what you want to control.


3. Edit the Digits field and set it to 4.


4. Save changes.


Now, when you export to XLS, the values will appear rounded to 4 decimal places by default.


More details, please refer: https://www.youtube.com/watch?v=6_L6u74BgJw


Hope it helps.

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

This isn't really an answer to the question. Changing decimal places in Odoo will affect a lot more than the Excel export and usually isn't reversible.

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
2048
3
thg 2 25
15267
1
thg 4 25
2259
Export Import Đã xử lý
1
thg 4 25
2269
0
thg 10 23
1588