Commit 36162477 authored by Aurel's avatar Aurel

customize title of printout & use getMovementList to retrieve line as it is customizable

parent 02e073f5
...@@ -338,7 +338,10 @@ destination_decision = context.getDestinationDecisionValue()\n ...@@ -338,7 +338,10 @@ destination_decision = context.getDestinationDecisionValue()\n
if destination_decision is None:\n if destination_decision is None:\n
destination_decision = EmptyOrganisation()\n destination_decision = EmptyOrganisation()\n
\n \n
report_title = context.getSimulationState() == "draft" and "Draft Order" or "Order"\n
\n
data_dict = {\n data_dict = {\n
\'report_title\' : report_title,\n
\'source_section_title\': source_section.getProperty(\'corporate_name\') or\\\n \'source_section_title\': source_section.getProperty(\'corporate_name\') or\\\n
source_section.getTitle(),\n source_section.getTitle(),\n
\'source_section_image_path\': source_section.getDefaultImagePath() or \'\',\n \'source_section_image_path\': source_section.getDefaultImagePath() or \'\',\n
......
1067 1068
\ No newline at end of file \ No newline at end of file
...@@ -302,7 +302,7 @@ AAA=</string> </value> ...@@ -302,7 +302,7 @@ AAA=</string> </value>
<office:master-styles>\n <office:master-styles>\n
<style:master-page style:name="Standard" style:page-layout-name="pm1">\n <style:master-page style:name="Standard" style:page-layout-name="pm1">\n
<style:header tal:define="default_language python:test(request.get(\'international_form\'), \'en\', here.Localizer.get_selected_language());\n <style:header tal:define="default_language python:test(request.get(\'international_form\'), \'en\', here.Localizer.get_selected_language());\n
orig_title python: test(context.getSimulationState() == \'offered\', \'Offer\', \'Order\');\n orig_title python: data_dict[\'report_title\'];\n
en_title python: unicode(here.Base_translateString(orig_title, lang=default_language), \'utf-8\');\n en_title python: unicode(here.Base_translateString(orig_title, lang=default_language), \'utf-8\');\n
my_title python: unicode(here.Base_translateString(orig_title), \'utf-8\');\n my_title python: unicode(here.Base_translateString(orig_title), \'utf-8\');\n
orig_page string:Page;\n orig_page string:Page;\n
...@@ -371,8 +371,7 @@ AAA=</string> </value> ...@@ -371,8 +371,7 @@ AAA=</string> </value>
</style:master-page>\n </style:master-page>\n
<style:master-page style:name="Endnote" style:page-layout-name="pm2"/>\n <style:master-page style:name="Endnote" style:page-layout-name="pm2"/>\n
</office:master-styles>\n </office:master-styles>\n
</office:document-styles>\n </office:document-styles>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
...@@ -402,7 +401,7 @@ AAA=</string> </value> ...@@ -402,7 +401,7 @@ AAA=</string> </value>
</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>
......
1181 1182
\ 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