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

In the old rml reports I was able to make arthmatic operations on the field (like multiplying 2 fields)

is this still possible in the new Qweb reports  ??

I want to show a value in the <td> that consists of multiplying 2 fields together 

 

Thanks 

 

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

Yes, this is possible, use t-esc and try like this:

<td><span t-esc="o.ABC * o.XYZ"/></td>

See Qweb reference

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

Thanks for the help :)


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
نوفمبر 15
4554
0
يناير 25
3926
4
يناير 25
44845
0
أكتوبر 24
1650
0
أكتوبر 24
5