Commit aeaab669 authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

erp5_consulting: Fix UseCaseModule_viewUseCaseReportAsSxw and use selection

parent 856cd845
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
<text:p text:style-name='Text body'>Nexedi SA</text:p> <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: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> <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 @@ ...@@ -105,8 +105,9 @@
svg:width="12cm" svg:width="12cm"
svg:height="7.516cm" svg:height="7.516cm"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
tal:attributes="xlink:href python:request.oo_builder.addImage(image.index_html(None,None)); tal:condition="python: image.width != 0"
svg:height python:'%scm' % (12 * float(image.height()) / max(float(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> </text:p>
</tal:block> </tal:block>
...@@ -215,4 +216,4 @@ ...@@ -215,4 +216,4 @@
</div> </div>
</office:body> </office:body>
</office:document-content> </office:document-content>
\ No newline at end of file
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <unicode></unicode> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </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