Dynamic Dropdown Widget

Dynamic Dropdown Widget

by Contaura LLC · original work by CorporateHub, OCA
web_widget_dropdown_dynamic
$ 29.00

This module adds support for dynamic dropdown widget

1.0

One purchase covers every version. Already bought it? Sign in.

Dynamic Dropdown Widget

Dynamic dropdown widget that supports resolving options from backend of:

  • fields.Char
  • fields.Integer
  • fields.Selection

NOTE: This widget is not intended to extend fields.Selection, but to filter selection values. For fully-dynamic set of options, use fields.Char instead.

Table of contents

Usage

@api.model
def method_name(self):
    values = [
        ('value_a', 'Title A'),
    ]
    if self.env.context.get('depending_on') == True:
        values += [
            ('value_b', 'Title B'),
        ]
    return values
<field
    name="other_field"
/>
<field
    name="char_field"
    widget="dynamic_dropdown"
    values="method_name"
    context="{'depending_on': other_field}"
/>

Known issues / Roadmap

  • In v13, $.when is going to become Promise.resolve
Technical nameweb_widget_dropdown_dynamic
Module version12.0.1.0.1
Tulio versions1.0
CategoryTools
PublisherContaura LLC
Ported to Tulio, tested and supported by Contaura LLC.
Original authorsCorporateHub, OCA
LicenseAGPL-3
Open source: you may use, change and share this module under its license. The price covers the Tulio port, its testing on Tulio 1.0 and the download.
Requires (Tulio core)web
Lines of code369
Downloads0
Released12/06/2026
12.0.1.0.1 Tulio 1.0 · 12/06/2026