Skip to content
Health
35/100
poor
  • Security25/25
    No findings
  • Activity0/25
    Last human commit 138 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.02 MB
Module directory on disk
Code analysis 1 migration note 0 models 0 views 0 HTTP endpoints

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

Dependencies

Odoo dependencies
OCA/web:
odoo/odoo:
- web
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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.