| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/web |
| GIT | |
| GIT | https://github.com/OCA/web.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/web/tree/7.0/web_relativedelta |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Dependency |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), Therp BV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), Therp BV |
| COMMITTERS | |
| COMMITTERS | Alexandre Fayolle, Holger Brunn |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:07:15 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
OCA/web: - web_lib_moment odoo/odoo: - web |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
Introduction
============
This addon provides a reimplementation of OpenERP's pyjs relativedelta class
using Moment.js (http://momentjs.com).
On top of what you can do with the original, you can use
- datetime objects
- relativedelta(hour=0-23, hours=0-23)
- relativedelta(minute=0-59, minutes=0-59)
- relativedelta(seconds=0-59, seconds=0-59)
- relativedelta(weekday=0) [MO] ... weekday=6 [SU]
- there's no MO(+n) syntax, but that can be simulated by
relativedelta(weeks=+(n-1), days=1, weekday=0), this week's monday would
be relativedelta(weeks=-1, days=1, weekday=0) etc.
- all of them together in a predictable manner as detailed in
https://labix.org/python-dateutil#head-72c4689ec5608067d118b9143cef6bdffb6dad4e
Usage
=====
Simply depend on web_relativedelta and enjoy most of python's relativedelta
functionality
|
No views found for this module.
No models found for this module.