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,4 @@
from odoo.tools import config
if not config.get("without_demo"):
from . import ir_filters

View File

@@ -0,0 +1,19 @@
# Copyright 2024 Tecnativa - Carlos Roca
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl.html).
from odoo import api, models
class IrFilters(models.Model):
_inherit = "ir.filters"
@api.model
def dynamic_dropdown_int_method_demo(self):
values = [
("1", "One"),
]
if self.env.context.get("depending_on") == self.env.ref("base.user_admin").id:
values += [
("2", "Two"),
]
return values