Commit 86d11aca authored by Vincent Pelletier's avatar Vincent Pelletier

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
parent 63add40d
...@@ -567,6 +567,8 @@ class BaobabConduit(ERP5Conduit): ...@@ -567,6 +567,8 @@ class BaobabConduit(ERP5Conduit):
elif base_key == 'variation': elif base_key == 'variation':
if currency_portal_type == 'Banknote': # Variation is set only for Banknotes. if currency_portal_type == 'Banknote': # Variation is set only for Banknotes.
category = self.variation_translate_dict.get(kw[base_key], kw[base_key]) category = self.variation_translate_dict.get(kw[base_key], kw[base_key])
else:
category = 'not_defined'
else: else:
category = kw[base_key] category = kw[base_key]
else: else:
...@@ -1023,9 +1025,9 @@ class BaobabConduit(ERP5Conduit): ...@@ -1023,9 +1025,9 @@ class BaobabConduit(ERP5Conduit):
resource_value = document.getPortalObject().restrictedTraverse(resource_url) resource_value = document.getPortalObject().restrictedTraverse(resource_url)
document.setResourceValue(resource_value) 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 define it here in order to make sure to not delete security
""" """
ERP5Conduit.newObject(self, object=object, xml=xml, simulate=simulate, 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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment