Commit 6d75a2f9 authored by Jérome Perrin's avatar Jérome Perrin

if the source decision is a person, use the source section's default image as

logo


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22802 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0dfec005
...@@ -278,15 +278,15 @@ data_dict = {\n ...@@ -278,15 +278,15 @@ data_dict = {\n
context.getSourceValue().getProperty(\'vat_code\', \'\') or \'\'),\n context.getSourceValue().getProperty(\'vat_code\', \'\') or \'\'),\n
\n \n
\'source_decision_title\': context.getSourceDecisionTitle() or \'\',\n \'source_decision_title\': context.getSourceDecisionTitle() or \'\',\n
\'source_decision_image_path\': context.getSourceDecisionValue() is not None\\\n \'source_decision_image_path\': context.getSourceDecisionValue(portal_type=\'Organisation\') is not None\\\n
and context.getSourceDecisionValue().getDefaultImagePath() or \'\',\n and context.getSourceDecisionValue(portal_type=\'Organisation\').getDefaultImagePath() or \'\',\n
\'source_decision_image_width\': context.getSourceDecisionValue() is not None\\\n \'source_decision_image_width\': context.getSourceDecisionValue(portal_type=\'Organisation\') is not None\\\n
and context.getSourceDecisionValue().getDefaultImageWidth() is not None\\\n and context.getSourceDecisionValue(portal_type=\'Organisation\').getDefaultImageWidth() is not None\\\n
and context.getSourceDecisionValue().getDefaultImageWidth() \\\n and context.getSourceDecisionValue(portal_type=\'Organisation\').getDefaultImageWidth() \\\n
* inch_cm_ratio or \'\',\n * inch_cm_ratio or \'\',\n
\'source_decision_image_height\': context.getSourceDecisionValue() is not None\\\n \'source_decision_image_height\': context.getSourceDecisionValue(portal_type=\'Organisation\') is not None\\\n
and context.getSourceDecisionValue().getDefaultImageHeight() is not None\\\n and context.getSourceDecisionValue(portal_type=\'Organisation\').getDefaultImageHeight() is not None\\\n
and context.getSourceDecisionValue().getDefaultImageHeight() \\\n and context.getSourceDecisionValue(portal_type=\'Organisation\').getDefaultImageHeight() \\\n
* inch_cm_ratio or \'\',\n * inch_cm_ratio or \'\',\n
\'source_decision_address\':getOneLineAddress(\n \'source_decision_address\':getOneLineAddress(\n
context.getSourceDecision() and \n context.getSourceDecision() and \n
......
391 392
\ No newline at end of file \ No newline at end of file
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