From 0545cf1c9f7fb96458e8576d57188c0df33ef2f9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Wed, 14 Mar 2012 11:55:27 +0100
Subject: [PATCH] Price shall be defined too.

---
 ....xml => property_existence_constraint.xml} | 36 +++----------------
 ....xml => property_existence_constraint.xml} | 36 +++----------------
 master/bt5/vifib_erp5/bt/revision             |  2 +-
 3 files changed, 11 insertions(+), 63 deletions(-)
 rename master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/{quantity_existence_constraint.xml => property_existence_constraint.xml} (61%)
 rename master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/{quantity_existence_constraint.xml => property_existence_constraint.xml} (61%)

diff --git a/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/quantity_existence_constraint.xml b/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/property_existence_constraint.xml
similarity index 61%
rename from master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/quantity_existence_constraint.xml
rename to master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/property_existence_constraint.xml
index 656c55fdf..1297309b8 100644
--- a/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/quantity_existence_constraint.xml
+++ b/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSaleOrderLineConstraint/property_existence_constraint.xml
@@ -12,23 +12,6 @@
               <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
             </value>
         </item>
-        <item>
-            <key> <string>_local_properties</string> </key>
-            <value>
-              <tuple>
-                <dictionary>
-                  <item>
-                      <key> <string>id</string> </key>
-                      <value> <string>message_property_not_set</string> </value>
-                  </item>
-                  <item>
-                      <key> <string>type</string> </key>
-                      <value> <string>string</string> </value>
-                  </item>
-                </dictionary>
-              </tuple>
-            </value>
-        </item>
         <item>
             <key> <string>_range_criterion</string> </key>
             <value>
@@ -39,34 +22,25 @@
             <key> <string>constraint_property</string> </key>
             <value>
               <tuple>
+                <string>price</string>
                 <string>quantity</string>
               </tuple>
             </value>
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string>Property quantity must be defined</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>quantity_existence_constraint</string> </value>
-        </item>
-        <item>
-            <key> <string>message_no_such_property</string> </key>
-            <value> <string>Property quantity must be defined</string> </value>
-        </item>
-        <item>
-            <key> <string>message_property_not_set</string> </key>
-            <value> <string>Property quantity must be defined</string> </value>
+            <value> <string>property_existence_constraint</string> </value>
         </item>
         <item>
             <key> <string>portal_type</string> </key>
             <value> <string>Property Existence Constraint</string> </value>
         </item>
-        <item>
-            <key> <string>test_tales_expression</string> </key>
-            <value> <string>python: object.getSimulationState() != \'draft\'</string> </value>
-        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/quantity_existence_constraint.xml b/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/property_existence_constraint.xml
similarity index 61%
rename from master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/quantity_existence_constraint.xml
rename to master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/property_existence_constraint.xml
index 656c55fdf..1297309b8 100644
--- a/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/quantity_existence_constraint.xml
+++ b/master/bt5/vifib_erp5/PropertySheetTemplateItem/portal_property_sheets/VifibSalePackingListLineConstraint/property_existence_constraint.xml
@@ -12,23 +12,6 @@
               <persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
             </value>
         </item>
-        <item>
-            <key> <string>_local_properties</string> </key>
-            <value>
-              <tuple>
-                <dictionary>
-                  <item>
-                      <key> <string>id</string> </key>
-                      <value> <string>message_property_not_set</string> </value>
-                  </item>
-                  <item>
-                      <key> <string>type</string> </key>
-                      <value> <string>string</string> </value>
-                  </item>
-                </dictionary>
-              </tuple>
-            </value>
-        </item>
         <item>
             <key> <string>_range_criterion</string> </key>
             <value>
@@ -39,34 +22,25 @@
             <key> <string>constraint_property</string> </key>
             <value>
               <tuple>
+                <string>price</string>
                 <string>quantity</string>
               </tuple>
             </value>
         </item>
         <item>
             <key> <string>description</string> </key>
-            <value> <string>Property quantity must be defined</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>id</string> </key>
-            <value> <string>quantity_existence_constraint</string> </value>
-        </item>
-        <item>
-            <key> <string>message_no_such_property</string> </key>
-            <value> <string>Property quantity must be defined</string> </value>
-        </item>
-        <item>
-            <key> <string>message_property_not_set</string> </key>
-            <value> <string>Property quantity must be defined</string> </value>
+            <value> <string>property_existence_constraint</string> </value>
         </item>
         <item>
             <key> <string>portal_type</string> </key>
             <value> <string>Property Existence Constraint</string> </value>
         </item>
-        <item>
-            <key> <string>test_tales_expression</string> </key>
-            <value> <string>python: object.getSimulationState() != \'draft\'</string> </value>
-        </item>
       </dictionary>
     </pickle>
   </record>
diff --git a/master/bt5/vifib_erp5/bt/revision b/master/bt5/vifib_erp5/bt/revision
index 7b89b2202..009bd2c17 100644
--- a/master/bt5/vifib_erp5/bt/revision
+++ b/master/bt5/vifib_erp5/bt/revision
@@ -1 +1 @@
-406
\ No newline at end of file
+407
\ No newline at end of file
-- 
2.30.9