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

Hi,

In `res_partner_view.xml`, there's the `company_type` widget like this:

```<field name="company_type" widget="radio"

class="oe_edit_only"

on_change="on_change_company_type(company_type)"

options="{'horizontal': true}"/>```

I'll like to render this widget within Qweb template. How can I go about this?

I Appreciate you response.

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

use t-field-options

<span t-field="pack.template_id.image_medium" t-field-options='{"widget": "image", "class": "img-rounded"}'/>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 21
10692
0
thg 3 21
3717
5
thg 9 20
4910
0
thg 10 20
7151
5
thg 9 20
4985