PageRenderTime 23ms CodeModel.GetById 8ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Category_view/my_quantity.xml

https://gitlab.com/perrinjerome/erp5
XML | 156 lines | 156 code | 0 blank | 0 comment | 0 complexity | 9049a9a5214ab9666df2cf4266bd3cc0 MD5 | raw file
  1<?xml version="1.0"?>
  2<ZopeData>
  3  <record id="1" aka="AAAAAAAAAAE=">
  4    <pickle>
  5      <global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
  6    </pickle>
  7    <pickle>
  8      <dictionary>
  9        <item>
 10            <key> <string>delegated_list</string> </key>
 11            <value>
 12              <list>
 13                <string>display_width</string>
 14                <string>precision</string>
 15                <string>enabled</string>
 16              </list>
 17            </value>
 18        </item>
 19        <item>
 20            <key> <string>id</string> </key>
 21            <value> <string>my_quantity</string> </value>
 22        </item>
 23        <item>
 24            <key> <string>message_values</string> </key>
 25            <value>
 26              <dictionary>
 27                <item>
 28                    <key> <string>external_validator_failed</string> </key>
 29                    <value> <string>The input failed the external validator.</string> </value>
 30                </item>
 31              </dictionary>
 32            </value>
 33        </item>
 34        <item>
 35            <key> <string>overrides</string> </key>
 36            <value>
 37              <dictionary>
 38                <item>
 39                    <key> <string>field_id</string> </key>
 40                    <value> <string></string> </value>
 41                </item>
 42                <item>
 43                    <key> <string>form_id</string> </key>
 44                    <value> <string></string> </value>
 45                </item>
 46                <item>
 47                    <key> <string>target</string> </key>
 48                    <value> <string></string> </value>
 49                </item>
 50              </dictionary>
 51            </value>
 52        </item>
 53        <item>
 54            <key> <string>tales</string> </key>
 55            <value>
 56              <dictionary>
 57                <item>
 58                    <key> <string>display_width</string> </key>
 59                    <value>
 60                      <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
 61                    </value>
 62                </item>
 63                <item>
 64                    <key> <string>enabled</string> </key>
 65                    <value>
 66                      <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
 67                    </value>
 68                </item>
 69                <item>
 70                    <key> <string>field_id</string> </key>
 71                    <value> <string></string> </value>
 72                </item>
 73                <item>
 74                    <key> <string>form_id</string> </key>
 75                    <value> <string></string> </value>
 76                </item>
 77                <item>
 78                    <key> <string>precision</string> </key>
 79                    <value> <string></string> </value>
 80                </item>
 81                <item>
 82                    <key> <string>target</string> </key>
 83                    <value> <string></string> </value>
 84                </item>
 85              </dictionary>
 86            </value>
 87        </item>
 88        <item>
 89            <key> <string>values</string> </key>
 90            <value>
 91              <dictionary>
 92                <item>
 93                    <key> <string>description</string> </key>
 94                    <value> <string>Default Quantity of a resource in ERP5. It can be a product or it can be time quantity like hours or minutes for example. Quantity can be found in almost every business field of ERP5 and will always have this meaning, unless the term is different or precise, such as Priced Quantity for example.</string> </value>
 95                </item>
 96                <item>
 97                    <key> <string>display_width</string> </key>
 98                    <value> <int>20</int> </value>
 99                </item>
100                <item>
101                    <key> <string>enabled</string> </key>
102                    <value> <int>1</int> </value>
103                </item>
104                <item>
105                    <key> <string>field_id</string> </key>
106                    <value> <string>my_quantity</string> </value>
107                </item>
108                <item>
109                    <key> <string>form_id</string> </key>
110                    <value> <string>Base_viewFieldLibrary</string> </value>
111                </item>
112                <item>
113                    <key> <string>precision</string> </key>
114                    <value> <int>15</int> </value>
115                </item>
116                <item>
117                    <key> <string>target</string> </key>
118                    <value> <string>Click to edit the target</string> </value>
119                </item>
120                <item>
121                    <key> <string>title</string> </key>
122                    <value> <string>Quantity</string> </value>
123                </item>
124              </dictionary>
125            </value>
126        </item>
127      </dictionary>
128    </pickle>
129  </record>
130  <record id="2" aka="AAAAAAAAAAI=">
131    <pickle>
132      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
133    </pickle>
134    <pickle>
135      <dictionary>
136        <item>
137            <key> <string>_text</string> </key>
138            <value> <string>python: max(15,int(field.getTemplateField().get_value(\'display_width\')))</string> </value>
139        </item>
140      </dictionary>
141    </pickle>
142  </record>
143  <record id="3" aka="AAAAAAAAAAM=">
144    <pickle>
145      <global name="TALESMethod" module="Products.Formulator.TALESField"/>
146    </pickle>
147    <pickle>
148      <dictionary>
149        <item>
150            <key> <string>_text</string> </key>
151            <value> <string>python: (lambda x: x.getPortalType() == \'Base Category\' and x.getId() == \'quantity_unit\')(here.getParentValue().getParentValue())</string> </value>
152        </item>
153      </dictionary>
154    </pickle>
155  </record>
156</ZopeData>