Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
10122 Переглядів

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.

Аватар
Відмінити
Найкраща відповідь

use t-field-options

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
бер. 21
10745
0
бер. 21
3727
5
вер. 20
4943
0
жовт. 20
7170
5
вер. 20
5030