コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
10007 ビュー

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
10605
0
3月 21
3647
5
9月 20
4799
0
10月 20
7041
5
9月 20
4873