Dynamic Dropdown Widget
by Contaura LLC
· original work by CorporateHub, OCA
web_widget_dropdown_dynamic
$ 29.00
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 name | web_widget_dropdown_dynamic |
|---|---|
| Module version | 12.0.1.0.1 |
| Tulio versions | 1.0 |
| Category | Tools |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | CorporateHub, OCA |
| License | AGPL-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 code | 369 |
| Downloads | 0 |
| Released | 12/06/2026 |