[ADD] view.rng: new @options attribute for field widgets
authorOlivier Dony <odo@openerp.com>
Wed, 21 Dec 2011 11:03:01 +0000 (12:03 +0100)
committerOlivier Dony <odo@openerp.com>
Wed, 21 Dec 2011 11:03:01 +0000 (12:03 +0100)
This attribute is supposed to be a JSON dict containing
arbitrary widget-specific options. To be ignored if the
widget or client does not support them.

bzr revid: odo@openerp.com-20111221110301-ejjm4s4f2vttw2r6

openerp/addons/base/rng/view.rng

index 7cbe713..4769f96 100644 (file)
             <rng:optional><rng:attribute name="filters"/></rng:optional>
             <rng:optional><rng:attribute name="statusbar_visible"/></rng:optional>
             <rng:optional><rng:attribute name="statusbar_colors"/></rng:optional>
+            <!-- Widget *static* options defined as an arbitrary JSON dict, with
+                 widget-dependent parameters. To be ignored if widget/client does
+                 not support them. -->
+            <rng:optional><rng:attribute name="options"/></rng:optional>
             <rng:zeroOrMore>
                 <rng:choice>
                     <rng:ref name="diagram"/>