تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
1565 أدوات العرض

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مايو 25
802
0
أغسطس 25
346
5
أبريل 25
6676
0
فبراير 25
1613
3
أكتوبر 24
3872