summaryrefslogtreecommitdiff
path: root/doc/reference
diff options
context:
space:
mode:
authorDavid Monjoie <dmo@odoo.com>2019-02-18 13:47:54 +0000
committerDavid Monjoie <dmo@odoo.com>2019-02-19 08:27:53 +0000
commit7c48315d7a8b964c818246f251f4aded1ffe4dae (patch)
tree5ec8ab24cd31a82503a737423602207b442f05d7 /doc/reference
parent1f4b606ad0b02deae69708033abbd5ccdfc92f95 (diff)
[IMP] base,doc: add offset attribute
Depending on the scale, the number of units to add to today to compute the default period. Examples: An offset of +1 in default_scale week will open the gantt view for next week, and an offset of -2 in default_scale month will open the gantt view of 2 months ago.
Diffstat (limited to 'doc/reference')
-rw-r--r--doc/reference/views.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/reference/views.rst b/doc/reference/views.rst
index ef486e3329f..e4137c12d3b 100644
--- a/doc/reference/views.rst
+++ b/doc/reference/views.rst
@@ -1303,6 +1303,11 @@ take the following attributes:
will be displayed while hovering each time slot to create a new record in
that slot, and if ``edit`` is enabled, a "magnifying glass" button will be
displayed to plan records into that time slot.
+``offset``
+ Depending on the scale, the number of units to add to today to compute the
+ default period. Examples: An offset of +1 in default_scale week will open the
+ gantt view for next week, and an offset of -2 in default_scale month will open
+ the gantt view of 2 months ago.
``progress``
name of a field providing the completion percentage for the record's event,
between 0 and 100