Corrections

This commit is contained in:
Bertrand Chenal committed 2008-10-06 14:06:10 +02:00
1 parent 65e81c63bf
commit 09857e61ca
1 file changed
+4 -3
+4 -3
View File
@@ -226,13 +226,14 @@ How to define selections
++++++++++++++++++++++++
A selection field allow the user to choose one value across a limited
number of values. There are two way to define a field that will be
number of values. There are two ways to define a field that will be
shown as a selection to the user:
1. Using the fields.Selection()
2. Using a fields.One2Many() and define it in the xml view of the
module as ``widget="Selection"``, see :ref:`example_form_view`.
2. Using a fields.Many2One() (with a static domain) and define it in
the xml view of the module as ``widget="Selection"``, see
:ref:`example_form_view`.
Let's take the following model as an example of the first option: