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

How to show selection fields in QWeb report?

 <tr t-foreach="o.order_line" t-as="l">
      <td><span t-field="l.product_id.state" /> </td>

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

It seems you are looping over sale_order_line. There is a 'state' field in this table. So if the state is what you want to show, you should try:

<span t-field="l.state" />

Ảnh đại diện
Huỷ bỏ