TIP: You can type at any time to perform a new search.
pytz support for filter domains
web_pytz · OCA/web
Security findings
Migration considerations
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- Repository
- OCA/web · module folder · Try on Runboat
- Module version
- 1.0
- Category
- Dependency
- Folder size
- 0.2 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- None
- Last tracking update
- 2026-08-07 06:56:09
- Authors
- Odoo Community Association (OCA), Therp BV
- Maintainers
- Odoo Community Association (OCA), Therp BV
- Committers
- Alexandre Fayolle, Holger Brunn
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Introduction ------------ This module allows complex timezone operations in domains mimicing python's pytz. The heavy lifting is done by http://momentjs.com/timezone. It is meant to allow correct filters for 'Today', 'Yesterday' etc. In addition to implementing a subset of `pytz.tzinfo` and `datetime.astimezone`, there's a shortcut called `utc_today()` which returns the beginning of the day in the current user's time zone translated to UTC, this is equivalent to:: pytz.timezone(tz).localize(datetime.datetime.now().replace(hour=0, minute=0, second=0)).astimezone(pytz.utc) in python. Usage ----- Depend on this module and use filters like:: [('write_date', '>=', utc_today().strftime('%Y-%m-%d %H:%M:%S'))] which displays records changed in the user's conception of today.
Code Analysis
Views touched (0)
No views found for this module.
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (0)
No models found for this module.