Skip to Content
Menú
This question has been flagged
1 Respondre
9971 Vistes

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
Descartar
Best Answer

use t-field-options

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

Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de març 21
10569
0
de març 21
3625
5
de set. 20
4761
0
d’oct. 20
7015
5
de set. 20
4835