Initial commit: Odoo 18.0-20251222 extra-addons
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled

This commit is contained in:
tocmo0nlord
2026-03-13 20:43:25 +00:00
parent 36e847a7df
commit adbe430761
9472 changed files with 1265727 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
- [CorporateHub](https://corporatehub.eu/)
- Alexey Pelykh \<<alexey.pelykh@corphub.eu>\>
- [Therp BV](https://therp.nl/)
- Ronald Portier \<<ronald@therp.nl>\>
- Thanakrit Pintana \<<thanakrit.p39@gmail.com>\>
- [Trobz](https://trobz.com):
> - Son Ho \<<sonho@trobz.com>\>
- [Tecnativa](https://www.tecnativa.com):
- Carlos Roca
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`_

View File

@@ -0,0 +1,2 @@
The migration of this module from 15.0 to 16.0 was financially supported
by Camptocamp

View File

@@ -0,0 +1,9 @@
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.

View File

@@ -0,0 +1,30 @@
``` python
@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
```
``` xml
<field
name="other_field"
/>
<field
name="char_field"
widget="dynamic_dropdown"
options="{'values':'method_name'}"
context="{'depending_on': other_field}"
/>
```
**DEMO**
On User defined filters added new field to show the feature, it is called
**Dropdown Integer**. If any user selected just One option shoud appear, but if
Mitchell Admin it should be possible to select option One and Two.