Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
10094 Tampilan

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
Buang
Jawaban Terbai

use t-field-options

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

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Mar 21
10692
0
Mar 21
3717
5
Sep 20
4910
0
Okt 20
7151
5
Sep 20
4985