Commit cf1d4f7d authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Eteri

erp5_consulting: Fix UseCaseModule_viewUseCaseReportAsSxw and use selection

parent 5664643f
......@@ -88,7 +88,7 @@
<text:p text:style-name='Text body'>Nexedi SA</text:p>
<div tal:omit-tag='' tal:repeat='usecase python:here.searchFolder(portal_type="Use Case",sort_on=(("int_index",),), validation_state="validated") or (context,)'>
<div tal:omit-tag='' tal:repeat='usecase python:here.getPortalObject().portal_selections.callSelectionFor("use_case_selection")'>
<text:h text:style-name='Heading 2' text:level='2' i18n:domain="ui" i18n:translate="">Use Case : <span tal:replace='usecase/getTitle'>Title</span></text:h>
<text:p text:style-name='Text body' tal:replace="structure python: render_text(usecase.getDescription(), {'{http://openoffice.org/2000/text}style-name': 'Text body'})">Use Case Description</text:p>
......@@ -105,8 +105,9 @@
svg:width="12cm"
svg:height="7.516cm"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
tal:attributes="xlink:href python:request.oo_builder.addImage(image.index_html(None,None));
svg:height python:'%scm' % (12 * float(image.height()) / max(float(image.width()),0))" />
tal:condition="python: image.width != 0"
tal:attributes="xlink:href python:ooo_builder.addImage(image.index_html(None,None));
svg:height python:'%scm' % (12 * float(image.height) / max(float(image.width),0))" />
</text:p>
</tal:block>
......@@ -215,4 +216,4 @@
</div>
</office:body>
</office:document-content>
</office:document-content>
\ No newline at end of file
......@@ -64,7 +64,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <unicode></unicode> </value>
</item>
</dictionary>
</pickle>
......
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