Merge lp:~camptocamp/openobject-server/7.0-doc_improvement-afe into lp:openobject-server/7.0

Proposed by Alexandre Fayolle - camptocamp
Status: Merged
Merged at revision: 5055
Proposed branch: lp:~camptocamp/openobject-server/7.0-doc_improvement-afe
Merge into: lp:openobject-server/7.0
Diff against target: 20 lines (+10/-1)
1 file modified
doc/03_module_dev_03.rst (+10/-1)
To merge this branch: bzr merge lp:~camptocamp/openobject-server/7.0-doc_improvement-afe
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+181235@code.launchpad.net

Description of the change

Documentation improvement.

To post a comment you must log in.
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Looks fine, but what's with the funky indentation of the context continuation? ;-) I'd either go for a full Python-like indentation or keeping everything on one line, but here it looks like `'tree_view_ref'` is another attribute?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/03_module_dev_03.rst'
2--- doc/03_module_dev_03.rst 2012-11-19 14:39:12 +0000
3+++ doc/03_module_dev_03.rst 2013-08-21 09:59:29 +0000
4@@ -1356,7 +1356,16 @@
5 .. code-block:: xml
6
7 <field name="order_line" colspan="4" nolabel="1"
8- context="{'form_view_ref' : 'module.view_id', 'tree_view_ref' : 'model.view_id'}"/>
9+ context="{'form_view_ref' : 'module.view_id',
10+ 'tree_view_ref' : 'module.view_id'}"/>
11+
12+.. note::
13+
14+ You have to put the module name in xml id of the view, because this
15+ is evaluated when the view is displayed, and not when the XML file
16+ is parsed, so the module name information is not available. Failing
17+ to do so will result in the default view being selected (see
18+ below).
19
20 If you don't specify the views, OpenERP will choose one in this order :
21