跳至內容
選單
此問題已被標幟
1 回覆
9813 瀏覽次數

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
10310
0
3月 21
3480
5
9月 20
4523
0
10月 20
6791
5
9月 20
4633