Commit f9d6caa7 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

ERP5/InteractionWorkflow.py: showAsXML, make True to 1, False to 0.

parent 7d6d5c7d
...@@ -431,6 +431,11 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject): ...@@ -431,6 +431,11 @@ class InteractionWorkflowDefinition (DCWorkflowDefinition, ActiveObject):
sub_object = SubElement(interaction, property_id, attrib=dict(type=property_type)) sub_object = SubElement(interaction, property_id, attrib=dict(type=property_type))
if property_value is None or property_value == [] or property_value == (): if property_value is None or property_value == [] or property_value == ():
property_value = '' property_value = ''
if property_id in ['once_per_transaction', 'temporary_document_disallowed']:
if property_value == True:
property_value = '1'
elif property_value == False:
property_value ='0'
sub_object.text = str(property_value) sub_object.text = str(property_value)
# 2. Variable as XML # 2. Variable as XML
......
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