From c3a00140b8e0cf6fb1372f10d9330bb7df07ce99 Mon Sep 17 00:00:00 2001 From: Tristan Cavelier <tristan.cavelier@nexedi.com> Date: Tue, 22 Dec 2015 14:53:30 +0000 Subject: [PATCH] erp5_project: include image in RequirementDocument_viewDetailedReportAsOdt --- .../RequirementDocument_viewDetailedReportAsOdt.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_viewDetailedReportAsOdt.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_viewDetailedReportAsOdt.xml index 7d3b48dc45..5ac6b5361a 100644 --- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_viewDetailedReportAsOdt.xml +++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_viewDetailedReportAsOdt.xml @@ -149,6 +149,15 @@ AAA=</string> </value> <text:p text:style-name=\'Comment\'\n tal:condition="python: request.get(\'show_comment\') and requirement.getTranslatedComment()"\n tal:content="requirement/getTranslatedComment">Comment here</text:p>\n + <tal:block tal:repeat="image python:here.portal_catalog(follow_up_uid=requirement.getUid(), portal_type=\'Image\')">\n + <text:p text:style-name="P1">\n + <draw:frame draw:style-name="fr1" draw:name="Image1" text:anchor-type="as-char" svg:width="3in" draw:z-index="0"\n + tal:attributes="draw:name python:\'embedded_erp5_image_%s\' % image.getId();\n + svg:height python: \'%1.1fin\' % (3.0 * image.getHeight() / (image.getWidth() or 1.0))">\n + <draw:image><office:binary-data tal:content="python:str(image.convert(format=\'png\')[1]).encode(\'base64\')" /></draw:image>\n + </draw:frame>\n + </text:p>\n + </tal:block>\n </table:table-cell>\n </table:table-row>\n </tal:block>\n -- 2.30.9