Update README.rst
[FIX] Remove console.log
[ADD] Make timeline.fit optional
[FIX] Use stringified points
[IMP] Reversed the arrow head and fixed lint issues
[IMP] Use options parameter for line color and width
[FIX] Version number
[IMP] Minor improvements
The default window display all the events (aka 'fit'), in case of events spread over the year, the events are invisibles (too small to be readable)
Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
In Odoo calendar view, the attribute date_delay is an alternative to date_stop, to provides the duration of the event instead of its end date.
This commit integrate this attribute to the Timeline view, but contrary to the base Calendar view the Timeline view could use both arguments (date_stop and date_delay) simultaneously.
Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
* Update the vis.js framework to latest stable version (v4.20.1) to add new functionality and save almost
400ko of source code in odoo assets (the vis dev team has isolate the code for timeline widget from the
rest of their widgets)
* Add the possibility to display events with no duration (instantaneous) as the same time has regular events
* Add the possibility to choose between two scroll mode :
- zoom in time resolution (default)
or
- vertical scroll (web browser default behaviour)
Signed-off-by: adrien.didenot <adrien.didenot@horanet.com>
Add self-test buttons in demo environment,
Updated readme to show how to test it.
Add buttons to users form
Do not rely on SUPERUSER_ID and avoid getattr usage
Only the admin user (sudo) is allowed to send notifications to other
users. The normal users can only send notifications to themselves.
This is to prevent attackers to craft malicious notifications and send
them to other users using RPC.
Correction based on the idea of @hbrunn
- Use the 'session' class of the JS Framework (session no lounger bound
to web client)
- Test change: compare emitted & received messages based on content, not
order. Using string comparison raises false positives.
Fix a check when comparing a user count with items within a mock call.
The previous method was succeeding by pure luck because OCA test
databases contain 2 users, which happens to be the amount of items
within a mock "call_args" (it contains args + kwargs).
[MIG] web_environment_ribbon: Migration to 12.0
[FIX] Default value for ribbon.name if not exists
[FIX] Hide ribbon when ribbon.name is false or not existing
[FIX] Remove copyright flag on __init__ files
[REM] Debugging logs
[REM] Make quotes inconsistant again and change sequence of data files in manifest