From d701478a7cd6f8e6e2014b69e14b5b0e11fdb372 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 8 Apr 2008 09:41:51 +0000
Subject: [PATCH] Those TALES expressions will not fail when no
 "default_payment_condition" exists

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20341 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../my_payment_condition_payment_additional_term.xml          | 4 ++--
 .../my_payment_condition_payment_date.xml                     | 4 ++--
 .../my_payment_condition_payment_end_of_month.xml             | 4 ++--
 .../my_payment_condition_payment_term.xml                     | 4 ++--
 bt5/erp5_trade/bt/revision                                    | 2 +-
 5 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_additional_term.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_additional_term.xml
index 0741fb4b30..fabf32f535 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_additional_term.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_additional_term.xml
@@ -81,7 +81,7 @@
             <value>
               <dictionary>
                 <item>
-                    <key>                 <string>enabled</string> </key>
+                    <key> <string>enabled</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
@@ -113,7 +113,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: here.default_payment_condition.getTradeDate() != \'custom\'</string> </value>
+            <value> <string>python: here.getPaymentConditionTradeDate() != \'custom\'</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_date.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_date.xml
index c9aa71d7da..0414fb0654 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_date.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_date.xml
@@ -81,7 +81,7 @@
             <value>
               <dictionary>
                 <item>
-                    <key>                 <string>enabled</string> </key>
+                    <key> <string>enabled</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
@@ -113,7 +113,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: here.default_payment_condition.getTradeDate() == \'custom\'</string> </value>
+            <value> <string>python: here.getPaymentConditionTradeDate() == \'custom\'</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_end_of_month.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_end_of_month.xml
index d55ea3ec96..3e314a348b 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_end_of_month.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_end_of_month.xml
@@ -81,7 +81,7 @@
             <value>
               <dictionary>
                 <item>
-                    <key>                 <string>enabled</string> </key>
+                    <key> <string>enabled</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
@@ -113,7 +113,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: here.default_payment_condition.getTradeDate() != \'custom\'</string> </value>
+            <value> <string>python: here.getPaymentConditionTradeDate() != \'custom\'</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_term.xml b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_term.xml
index 31bd1a0013..a5d74344db 100644
--- a/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_term.xml
+++ b/bt5/erp5_trade/SkinTemplateItem/portal_skins/erp5_trade/TradeCondition_viewPayment/my_payment_condition_payment_term.xml
@@ -81,7 +81,7 @@
             <value>
               <dictionary>
                 <item>
-                    <key>                 <string>enabled</string> </key>
+                    <key> <string>enabled</string> </key>
                     <value> <int>1</int> </value>
                 </item>
                 <item>
@@ -113,7 +113,7 @@
       <dictionary>
         <item>
             <key> <string>_text</string> </key>
-            <value> <string>python: here.default_payment_condition.getTradeDate() != \'custom\'</string> </value>
+            <value> <string>python: here.getPaymentConditionTradeDate() != \'custom\'</string> </value>
         </item>
       </dictionary>
     </pickle>
diff --git a/bt5/erp5_trade/bt/revision b/bt5/erp5_trade/bt/revision
index 1e3852840b..b7c52fb181 100644
--- a/bt5/erp5_trade/bt/revision
+++ b/bt5/erp5_trade/bt/revision
@@ -1 +1 @@
-211
\ No newline at end of file
+212
\ No newline at end of file
-- 
GitLab