summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2013-08-21 13:52:49 +0200
committerOlivier Dony <odo@openerp.com>2013-08-21 13:52:49 +0200
commit7ce2c64eb4c67aef876427a1159f80e83d28e998 (patch)
tree015fbffe1fc1b2484767958af2608400a234c561
parent0995418289a1b225513272fd6e77f3b03ef48d33 (diff)
parent1fdbbdda6955ac2c5f84630a6cf1184deac8dffc (diff)
[MERGE] [DOC] make it explicit that the module name is mandatory when specifying a sub view via the context, courtesy of Alexandre Fayolle (Camptocamp)
bzr revid: odo@openerp.com-20130821115249-qv06t608ajo0f8yi
-rw-r--r--doc/03_module_dev_03.rst11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/03_module_dev_03.rst b/doc/03_module_dev_03.rst
index 40921eebcb5..b7a23b81385 100644
--- a/doc/03_module_dev_03.rst
+++ b/doc/03_module_dev_03.rst
@@ -1356,7 +1356,16 @@ specify a view id for each type of view supported, exactly like the action's
.. code-block:: xml
<field name="order_line" colspan="4" nolabel="1"
- context="{'form_view_ref' : 'module.view_id', 'tree_view_ref' : 'model.view_id'}"/>
+ context="{'form_view_ref' : 'module.view_id',
+ 'tree_view_ref' : 'module.view_id'}"/>
+
+.. note::
+
+ You have to put the module name in xml id of the view, because this
+ is evaluated when the view is displayed, and not when the XML file
+ is parsed, so the module name information is not available. Failing
+ to do so will result in the default view being selected (see
+ below).
If you don't specify the views, OpenERP will choose one in this order :