From de4e721900f8d618a1389f2263606ec70f0918a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9gory=20Wisniewski?= <gregory@nexedi.com>
Date: Wed, 9 Dec 2009 12:48:18 +0000
Subject: [PATCH] Fix is_cancellation integration done at r31175.

The is_cancellation does not exists in old deployments and needs to be optionnal.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31186 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_catalog/erp5_mysql_innodb/z_catalog_stock_list.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_stock_list.xml b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_stock_list.xml
index 1013ad53b9..9374e901a6 100644
--- a/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_stock_list.xml
+++ b/bt5/erp5_banking_core/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_catalog_stock_list.xml
@@ -341,7 +341,7 @@ VALUES\n
   <dtml-sqlvar expr="row_item[7]" type="int" optional>,\n
   <dtml-sqlvar expr="row_item[8]" type="int">, \n
   <dtml-sqlvar expr="row_item[9]" type="float" optional>,\n
-  <dtml-sqlvar expr="row_item[10]" type="int">, \n
+  <dtml-sqlvar expr="row_item[10]" type="int" optional>,\n
   <dtml-sqlvar expr="row_item[11]" type="datetime" optional>,\n
   <dtml-sqlvar expr="row_item[12]" type="float" optional>,\n
   <dtml-sqlvar expr="row_item[13]" type="string" optional>,\n
@@ -465,7 +465,7 @@ VALUES\n
   <dtml-sqlvar expr="row_item[7]" type="int" optional>,\n
   <dtml-sqlvar expr="row_item[8]" type="int">, \n
   <dtml-sqlvar expr="row_item[9]" type="float" optional>,\n
-  <dtml-sqlvar expr="row_item[10]" type="int">, \n
+  <dtml-sqlvar expr="row_item[10]" type="int" optional>,\n
   <dtml-sqlvar expr="row_item[11]" type="datetime" optional>,\n
   <dtml-sqlvar expr="row_item[12]" type="float" optional>,\n
   <dtml-sqlvar expr="row_item[13]" type="string" optional>,\n
-- 
2.30.9