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

Hi, I am a beginner in odoo development. I have added a new smart button inside the customer form to view its total unreconciled amount and redirect too its unreconciled entries, I have achieve getting its total value, however I don't know how to add thousand separator and set default decimal places. 

I don't know if there is an "odoo-way" in doing this or should i just convert it to String and then add an comma separator function before returning its value

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

I got it fixed. I just noticed the difference with the widget attr in the xml file of its count of entries vs the total invoice amount. widget="statinfo" but it must be set to "monetary" for the system to apply the format.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أبريل 23
20506
0
أبريل 22
1529
2
سبتمبر 21
6001
2
أغسطس 16
5440
1
مارس 15
12573