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

Hello,

I have a problem when invoice a sale order, the discount is not always correctly displayed. 
It's on Odoo.SH and sometimes he display the discount with a lot of digits behind the comma. 

Anyone has the same problem or has a solution to this?

Mostly after restarting the http worker it's all fine again.



Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Salih Salih,

The Decimal accuracy is changed to 2 so that's not the problem or solution for this issue.

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

Hi,

You can update the decimal precision to 2 as below


discount = fields.Float(
        string='Discount (%)',
        digits='Discount',
        default=0.0,
        digits=(12,2)
    )

Regards

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

Hi Jeroen, 

Activate developer mode and Go to Settings -> Technical -> Decimal Accuracy -> select discount in change decimal accuracy from here by type number of digit you need to see in discount field  

Ảnh đại diện
Huỷ bỏ
Tác giả

Hi Salih Salih,
The Decimal accuracy is changed to 2 so that's not the problem or solution for this issue.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 25
822
0
thg 8 25
371
5
thg 4 25
6713
0
thg 2 25
1626
3
thg 10 24
3890