From 9187dc15e573927556a22b504e7e369c40a17e17 Mon Sep 17 00:00:00 2001 From: Kevin Chappell Date: Fri, 29 Jan 2016 23:41:04 +0000 Subject: [FIX] remove --auto-reload from Documentation Option --auto-reload was removed (and the corresponding feature bound to --dev), don't document an option which doesn't exist anymore. closes #10697 --- doc/reference/cmdline.rst | 7 ------- 1 file changed, 7 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index 626906951a2..cd7a1d57203 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -280,13 +280,6 @@ customize the amout of logging output In case of conflict between :option:`--log-level` and :option:`--log-handler`, the latter is used -Advanced options ----------------- - -.. option:: --auto-reload - - enable auto-reloading of python files and xml files without having to - restart the server. Requires pyinotify_. .. _reference/cmdline/scaffold: -- cgit v1.2.3 From 90fd24b2d36f0922483aceebc83c2a236b9ddf2b Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 10 Feb 2016 07:40:21 +0100 Subject: [FIX] doc: gantt documentation Tutorial was using gantt view from 8.0 Add documentation in reference section on new attributes --- doc/reference/views.rst | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 871b275cd39..d775759222e 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -1013,26 +1013,40 @@ take the following attributes: and the end date will be set to the start date ``date_delay`` name of the field providing the duration of the event -``progress`` - name of a field providing the completion percentage for the record's event, - between 0 and 100 +``duration_unit`` + one of ``minute``, ``hour`` (default), ``day``, ``week``, ``month``, ``year`` + ``default_group_by`` name of a field to group tasks by -``fold_last_level`` - If a value is set, the last grouping level is folded -``round_dnd_dates`` - enables rounding the task's start and end dates to the nearest scale marks +``type`` + ``gantt`` classic gantt view (default) + + ``consolidate`` values of the first children are consolidated in the gantt's task + + ``planning`` children are displayed in the gantt's task ``consolidation`` field name to display consolidation value in record cell ``consolidation_max`` dictionary with the "group by" field as key and the maximum consolidation value that can be reached before displaying the cell in red + (e.g. ``{"user_id": 100}``) + + .. warning:: + The dictionnary definition must use double-quotes, ``{'user_id': 100}`` is + not a valid value +``consolidation_label`` + string to display next to the consolidation value, if not specified, the label + of the consolidation field will be used +``fold_last_level`` + If a value is set, the last grouping level is folded +``round_dnd_dates`` + enables rounding the task's start and end dates to the nearest scale marks + +.. ``progress`` + name of a field providing the completion percentage for the record's event, + between 0 and 100 .. consolidation_exclude .. consolidation_color -.. ``type`` - ``gantt`` classic gantt view (default) - ``consolidate`` values of the first children are consolidated in the gantt's task - ``planning`` children are displayed in the gantt's task .. _reference/views/diagram: -- cgit v1.2.3 From d0556808deaf70026464280906dec9fde2a90ed1 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 10 Feb 2016 13:56:17 +0100 Subject: [FIX] doc: kanban values The value formats is also available --- doc/reference/views.rst | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/reference') diff --git a/doc/reference/views.rst b/doc/reference/views.rst index d775759222e..39a31bf7f97 100644 --- a/doc/reference/views.rst +++ b/doc/reference/views.rst @@ -862,6 +862,8 @@ Possible children of the view element are: a :meth:`~openerp.models.Model.read` (except for date and datetime fields that are `formatted according to user's locale `_) + ``formats`` + the :js:class:`web.formats` module to manipulate and convert values ``read_only_mode`` self-explanatory -- cgit v1.2.3 From d48f43ebff67a58f7d8d46c3463c4468234dbaad Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 11 Feb 2016 10:01:04 +0100 Subject: [IMP] doc: better workflow example - Why is my workflow starting in b? - It is not, it goes from a to b directly - But I followed the example of the doc - It's incomplete --- doc/reference/workflows.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/workflows.rst b/doc/reference/workflows.rst index db57880436e..c67784797c4 100644 --- a/doc/reference/workflows.rst +++ b/doc/reference/workflows.rst @@ -86,6 +86,7 @@ instance, here is a simple sequence of two activities defined in XML + signal_goto_b A worfklow is always defined with respect to a particular model (the model is @@ -107,9 +108,10 @@ is of kind ``function``, which means that the action ``print_a()`` is a method call on the model ``test.workflow`` (the usual ``cr, uid, ids, context`` arguments are passed for you). -The transition between "a" and "b" does not specify any condition. This means -that the workflow instance immediately goes from "a" to "b" after "a" has been -processed, and thus also processes activity "b". +The transition between "a" and "b" specify a signal but not any condition. This +means the workflow instance will immediately transition from "a" to "b" when the +signal ``signal_goto_b`` is recieved and thus processes activity "b"'s action +``print_b()``. Activities ---------- -- cgit v1.2.3 From 1d15a2252a62c2fcd9554b831551de10c33e53a4 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 11 Feb 2016 10:31:59 +0100 Subject: [FIX] doc: sesrver action example Bad indentation, print is not available --- doc/reference/actions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst index 976fe84a922..44a2efd43e1 100644 --- a/doc/reference/actions.rst +++ b/doc/reference/actions.rst @@ -208,7 +208,7 @@ field: Res Partner Server Action - print self, object +raise Warning(object.name) -- cgit v1.2.3