Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
10126 Vues

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
Ignorer
Meilleure réponse

use t-field-options

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
mars 21
10749
0
mars 21
3727
5
sept. 20
4944
0
oct. 20
7173
5
sept. 20
5030