Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
10110 Visualizzazioni

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
Abbandona
Risposta migliore

use t-field-options

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
mar 21
10703
0
mar 21
3724
5
set 20
4917
0
ott 20
7160
5
set 20
4999