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

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 

 

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

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

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

See Qweb reference

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

Thanks for the help :)


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 15
4515
0
thg 1 25
3906
4
thg 1 25
44694
0
thg 10 24
1529
0
thg 10 24
5