From 86d11aca5811c5f5932a8aaf637d2f15c610e61c Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Tue, 3 Jul 2007 12:24:49 +0000
Subject: [PATCH] Add a default variation value for coins. Update to new
 ERP5SyncML API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15133 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5SyncML/Conduit/BaobabConduit.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/product/ERP5SyncML/Conduit/BaobabConduit.py b/product/ERP5SyncML/Conduit/BaobabConduit.py
index 4ab3961a34..6f4fd52fa7 100644
--- a/product/ERP5SyncML/Conduit/BaobabConduit.py
+++ b/product/ERP5SyncML/Conduit/BaobabConduit.py
@@ -567,6 +567,8 @@ class BaobabConduit(ERP5Conduit):
           elif base_key == 'variation':
             if currency_portal_type == 'Banknote': # Variation is set only for Banknotes.
               category = self.variation_translate_dict.get(kw[base_key], kw[base_key])
+            else:
+              category = 'not_defined'
           else:
             category = kw[base_key]
         else:
@@ -1023,9 +1025,9 @@ class BaobabConduit(ERP5Conduit):
     resource_value = document.getPortalObject().restrictedTraverse(resource_url)
     document.setResourceValue(resource_value)
 
-  def newObject(self, object=None, xml=None, simulate=0, reset_local_roles=0):
+  def newObject(self, object=None, xml=None, simulate=0, reset_local_roles=0, reset_workflow=0):
     """
     define it here in order to make sure to not delete security
     """
     ERP5Conduit.newObject(self, object=object, xml=xml, simulate=simulate,
-                          reset_local_roles=reset_local_roles)
+                          reset_local_roles=reset_local_roles, reset_workflow=reset_workflow)
-- 
2.30.9