Skip to Content
Menu
This question has been flagged
1 Atsakyti
10100 Rodiniai

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.

Portretas
Atmesti
Best Answer

use t-field-options

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
kov. 21
10696
0
kov. 21
3719
5
rugs. 20
4914
0
spal. 20
7154
5
rugs. 20
4987