跳至内容
菜单
此问题已终结
1 回复
10098 查看

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.

形象
丢弃
最佳答案

use t-field-options

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

形象
丢弃
相关帖文 回复 查看 活动
2
3月 21
10693
0
3月 21
3717
5
9月 20
4912
0
10月 20
7152
5
9月 20
4987