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,23 @@
For regular usage, see Usage below. This section is to clarify optional
functionality to developers.
To configure a model to use the Many2one style search field, make the
model inherit from \`date.range.search.mixin\`:
```
class AccountMove(models.Model):
_name = "account.move"
_inherit = ["account.move", "date.range.search.mixin"]
```
This will make a Period field show up in the search view:
> ![search_view](https://raw.githubusercontent.com/OCA/server-ux/18.0/date_range/static/description/date_range_many2one_search_field.png)
By default, the mixin works on the date field. If you want the mixin to
work on a field with a different name, you can set a property on your
model:
```
_date_range_search_field = "invoice_date"
```