Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
10449 Visninger

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
Kassér
Bedste svar

use t-field-options

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

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
mar. 21
11088
0
mar. 21
4100
5
sep. 20
5387
0
okt. 20
7632
5
sep. 20
5452