Commit 977fe14f authored by Jérome Perrin's avatar Jérome Perrin

payment_mean: make "limit" required

Submitting the field with an empty limit now cause an error like:

    ValueError: invalid literal for int() with base 10: ''

For simplicity, make the field required.

Also set a small default value and a range, to prevent accidentally displaying
too much when there's lot of data matching.
parent 15aae644
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
<key> <string>delegated_list</string> </key> <key> <string>delegated_list</string> </key>
<value> <value>
<list> <list>
<string>default</string>
<string>end</string>
<string>required</string>
<string>start</string> <string>start</string>
<string>title</string> <string>title</string>
</list> </list>
...@@ -61,10 +64,18 @@ ...@@ -61,10 +64,18 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>start</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>target</string> </key> <key> <string>target</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</value> </value>
</item> </item>
...@@ -72,6 +83,14 @@ ...@@ -72,6 +83,14 @@
<key> <string>values</string> </key> <key> <string>values</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>default</string> </key>
<value> <string>50</string> </value>
</item>
<item>
<key> <string>end</string> </key>
<value> <int>1000</int> </value>
</item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_integer_value</string> </value> <value> <string>my_integer_value</string> </value>
...@@ -80,6 +99,10 @@ ...@@ -80,6 +99,10 @@
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
<value> <string>Base_viewFieldLibrary</string> </value> <value> <string>Base_viewFieldLibrary</string> </value>
</item> </item>
<item>
<key> <string>required</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>start</string> </key> <key> <string>start</string> </key>
<value> <int>0</int> </value> <value> <int>0</int> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment