Skip to Content
मेन्यू
This question has been flagged
1 Reply
10142 Views

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

use t-field-options

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

Avatar
Discard
Related Posts Replies Views Activity
2
मार्च 21
10767
0
मार्च 21
3735
5
सित॰ 20
4981
0
अक्तू॰ 20
7188
5
सित॰ 20
5058