Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
1553 มุมมอง

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.



อวตาร
ละทิ้ง
ผู้เขียน

Hi Salih Salih,

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

คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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  

อวตาร
ละทิ้ง
ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
พ.ค. 25
798
0
ส.ค. 25
330
5
เม.ย. 25
6666
0
ก.พ. 25
1604
3
ต.ค. 24
3867