diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-02-17 17:48:03 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-02-17 17:48:03 +0100 |
| commit | 5be43b8d9ae4485ac28e9afb7dd7cdecefb58abc (patch) | |
| tree | 483b65cfc65fb4f57a32f841424812575ebdbc84 /doc | |
| parent | 6999a862fdff34ea7d05ba90c2977f2c386cb506 (diff) | |
| parent | 27058c4763b40c5ef9b2b81c9f8a2de8d68469af (diff) | |
[MERGE] forward port of branch 9.0 up to 27058c4
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/cla/corporate/roomsfor.md | 1 | ||||
| -rw-r--r-- | doc/cla/individual/alejandrosantana.md | 2 | ||||
| -rw-r--r-- | doc/cla/individual/fabienmorin.md | 11 | ||||
| -rw-r--r-- | doc/cla/individual/kevinchappell.md | 11 | ||||
| -rw-r--r-- | doc/howtos/backend.rst | 10 | ||||
| -rw-r--r-- | doc/reference/actions.rst | 2 | ||||
| -rw-r--r-- | doc/reference/cmdline.rst | 7 | ||||
| -rw-r--r-- | doc/reference/views.rst | 38 | ||||
| -rw-r--r-- | doc/reference/workflows.rst | 8 |
9 files changed, 62 insertions, 28 deletions
diff --git a/doc/cla/corporate/roomsfor.md b/doc/cla/corporate/roomsfor.md index f2aa1d0c2ce..522ffffe78a 100644 --- a/doc/cla/corporate/roomsfor.md +++ b/doc/cla/corporate/roomsfor.md @@ -11,3 +11,4 @@ Yoshi Tashiro tashiro@roomsfor.hk https://github.com/yostashiro List of contributors: Yoshi Tashiro tashiro@roomsfor.hk https://github.com/yostashiro +Manami Hashi manami@roomsfor.hk https://github.com/manamirfhk diff --git a/doc/cla/individual/alejandrosantana.md b/doc/cla/individual/alejandrosantana.md index aa3517ddb2b..f12e307b495 100644 --- a/doc/cla/individual/alejandrosantana.md +++ b/doc/cla/individual/alejandrosantana.md @@ -8,4 +8,4 @@ declaration. Signed, -Alejandro Santana tech@alejandrosantana.eu https://github.com/alejandrosantana +Alejandro Santana hi@alejandrosantana.eu https://github.com/alejandrosantana diff --git a/doc/cla/individual/fabienmorin.md b/doc/cla/individual/fabienmorin.md new file mode 100644 index 00000000000..3478578d9fc --- /dev/null +++ b/doc/cla/individual/fabienmorin.md @@ -0,0 +1,11 @@ +France, 2016-02-11 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +MORIN Fabien fabien.morin@gmail.com https://github.com/fabienmorin diff --git a/doc/cla/individual/kevinchappell.md b/doc/cla/individual/kevinchappell.md new file mode 100644 index 00000000000..4e1b14e4067 --- /dev/null +++ b/doc/cla/individual/kevinchappell.md @@ -0,0 +1,11 @@ +Portugal, 2016-01-30 + +I hereby agree to the terms of the Odoo Individual Contributor License +Agreement v1.0. + +I declare that I am authorized and able to make this agreement and sign this +declaration. + +Signed, + +Kevin Chappell kevin.b.chappell@gmail.com https://github.com/kevinchappell diff --git a/doc/howtos/backend.rst b/doc/howtos/backend.rst index 0b29d8ec0ae..0c61cc56fcb 100644 --- a/doc/howtos/backend.rst +++ b/doc/howtos/backend.rst @@ -1128,11 +1128,11 @@ their root element is ``<gantt>``. .. code-block:: xml - <gantt string="Ideas" date_start="invent_date" color="inventor_id"> - <level object="idea.idea" link="id" domain="[]"> - <field name="inventor_id"/> - </level> - </gantt> + <gantt string="Ideas" + date_start="invent_date" + date_stop="date_finished" + progress="progress" + default_group_by="inventor_id" /> .. exercise:: Gantt charts 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: <field name="name">Res Partner Server Action</field> <field name="model_id" ref="model_res_partner"/> <field name="code"> - print self, object +raise Warning(object.name) </field> </record> 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: diff --git a/doc/reference/views.rst b/doc/reference/views.rst index 871b275cd39..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 <https://github.com/odoo/odoo/blob/a678bd4e/addons/web_kanban/static/src/js/kanban_record.js#L102>`_) + ``formats`` + the :js:class:`web.formats` module to manipulate and convert values ``read_only_mode`` self-explanatory @@ -1013,26 +1015,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: 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 <record id="trans_a_b" model="workflow.transition"> <field name="act_from" ref="activity_a"/> <field name="act_to" ref="activity_b"/> + <field name="signal">signal_goto_b</signal> </record> 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 ---------- |
