İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
9994 Görünümler

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.

Avatar
Vazgeç
En İyi Yanıt

use t-field-options

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Mar 21
10581
0
Mar 21
3641
5
Eyl 20
4789
0
Eki 20
7028
5
Eyl 20
4853