Commit 323d3e16 authored by Nicolas Delaby's avatar Nicolas Delaby

add support of images in printout

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 507d1334
...@@ -201,6 +201,7 @@ for line in getSubLineList(context):\n ...@@ -201,6 +201,7 @@ for line in getSubLineList(context):\n
\n \n
data_dict = {\n data_dict = {\n
\'source_section_title\': context.getSourceSectionTitle() or \'\',\n \'source_section_title\': context.getSourceSectionTitle() or \'\',\n
\'source_section_image_path\': context.getSourceSectionValue() is not None and context.getSourceSectionValue().getDefaultImagePath() or \'\',\n
\'source_section_address\': getOneLineAddress(\n \'source_section_address\': getOneLineAddress(\n
context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressText() or \'\',\n context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressText() or \'\',\n
context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressRegionTitle() or \'\'),\n context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressRegionTitle() or \'\'),\n
...@@ -209,6 +210,7 @@ data_dict = {\n ...@@ -209,6 +210,7 @@ data_dict = {\n
\'source_section_email\': getEmail(context.getSourceSection() and context.getSourceSectionValue().getEmailText() or \'\'),\n \'source_section_email\': getEmail(context.getSourceSection() and context.getSourceSectionValue().getEmailText() 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 and context.getSourceDecisionValue().getDefaultImagePath() or \'\',\n
\'source_decision_address\':getOneLineAddress(\n \'source_decision_address\':getOneLineAddress(\n
context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressText() or \'\',\n context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressText() or \'\',\n
context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressRegionTitle() or \'\'),\n context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressRegionTitle() or \'\'),\n
......
...@@ -300,73 +300,8 @@ AAA=</string> </value> ...@@ -300,73 +300,8 @@ AAA=</string> </value>
<!--This PageTemplate is Used For Sale Order and Purchase Order-->\n <!--This PageTemplate is Used For Sale Order and Purchase Order-->\n
<tal:block tal:define="orig_string string:Supplier;\n <tal:block tal:define="orig_string string:Supplier;\n
en_string python:here.Base_translateString(orig_string, lang=\'en\');\n en_string python:here.Base_translateString(orig_string, lang=\'en\');\n
my_string python:here.Base_translateString(orig_string);\n my_string python:here.Base_translateString(orig_string);">\n
ds_title python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_title\'] or data_dict[\'source_decision_title\'];\n
ds_address python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_address\'] or data_dict[\'source_decision_address\'];\n
ds_telfax python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_telfax\'] or data_dict[\'source_decision_telfax\'];\n
ds_email python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_email\'] or data_dict[\'source_decision_email\'];\n
ds_vatid python: here.getPortalType().startswith(\'Purchase\') and data_dict[\'destination_section_vatid\'] or data_dict[\'source_decision_vatid\'];\n
orig_title python: here.getPortalType();\n
en_title python: unicode(here.Base_translateString(orig_title, lang=\'en\'), \'utf-8\');\n
my_title python: unicode(here.Base_translateString(orig_title), \'utf-8\');\n
orig_page string:Page; en_page python: unicode(here.Base_translateString(orig_page, lang=\'en\'), \'utf-8\');\n
my_page python: unicode(here.Base_translateString(orig_page), \'utf-8\');\n
orig_of string:of;\n
en_of python: unicode(here.Base_translateString(orig_of, lang=\'en\'), \'utf-8\');\n
my_of python: unicode(here.Base_translateString(orig_of), \'utf-8\')">\n
<text:p text:style-name=\'Table_20_Heading\'>\n <text:p text:style-name=\'Table_20_Heading\'>\n
<text:variable-set text:formula=\'ooow:title\'\n
text:name=\'ds_title\'\n
text:display=\'none\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value ds_title\'/>\n
<text:variable-set text:formula=\'ooow:address\'\n
text:name=\'ds_address\'\n
text:display=\'none\'\n
office:string-value=\'address\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value ds_address\'/>\n
<text:variable-set text:formula=\'ooow:telfax\'\n
text:name=\'ds_telfax\'\n
text:display=\'none\'\n
office:string-value=\'telfax\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value ds_telfax\'/>\n
<text:variable-set text:formula=\'ooow:email\'\n
text:name=\'ds_email\'\n
text:display=\'none\'\n
office:string-value=\'email\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value ds_email\'/>\n
<text:variable-set text:formula=\'ooow:vatid\'\n
text:name=\'ds_vatid\'\n
text:display=\'none\'\n
office:string-value=\'vatid\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value ds_vatid\'/>\n
<text:variable-set text:formula=\'ooow:purchase_order\'\n
text:name=\'purchase_order\'\n
text:display=\'none\'\n
office:string-value=\'purchase_order\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value en_title\'/>\n
<text:variable-set text:formula=\'ooow:purchase_order_tr\'\n
text:name=\'purchase_order_tr\'\n
text:display=\'none\'\n
office:string-value=\'purchase_order_tr\'\n
office:value-type=\'string\'\n
tal:condition=\'python:my_title != en_title\'\n
tal:attributes=\'office:string-value my_title\'/>\n
<text:variable-set text:formula=\'ooow:page\'\n
text:name=\'page\' text:display=\'none\'\n
office:string-value=\'page\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value my_page\'/>\n
<text:variable-set text:formula=\'ooow:of\'\n
text:name=\'of\' text:display=\'none\'\n
office:string-value=\'of\'\n
office:value-type=\'string\'\n
tal:attributes=\'office:string-value my_of\'/>\n
<tal:block tal:replace=\'en_string\'/>:</text:p>\n <tal:block tal:replace=\'en_string\'/>:</text:p>\n
<text:p text:style-name=\'Table_20_Heading\'\n <text:p text:style-name=\'Table_20_Heading\'\n
tal:condition=\'python:my_string!=en_string\'><span tal:replace=\'my_string\'/>:</text:p>\n tal:condition=\'python:my_string!=en_string\'><span tal:replace=\'my_string\'/>:</text:p>\n
...@@ -762,7 +697,11 @@ AAA=</string> </value> ...@@ -762,7 +697,11 @@ AAA=</string> </value>
</item> </item>
<item> <item>
<key> <string>ooo_stylesheet</string> </key> <key> <string>ooo_stylesheet</string> </key>
<value> <string>Order_getODTStyleSheet</string> </value> <value> <string>Order_viewAsODTStyles</string> </value>
</item>
<item>
<key> <string>ooo_xml_file_id</string> </key>
<value> <string>content.xml</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -183,6 +183,7 @@ for line in getSubLineList(context):\n ...@@ -183,6 +183,7 @@ for line in getSubLineList(context):\n
\n \n
data_dict = {\n data_dict = {\n
\'source_section_title\': context.getSourceSectionTitle() or \'\',\n \'source_section_title\': context.getSourceSectionTitle() or \'\',\n
\'source_section_image_path\': context.getSourceSectionValue() is not None and context.getSourceSectionValue().getDefaultImagePath() or \'\',\n
\'source_section_address\': getOneLineAddress(\n \'source_section_address\': getOneLineAddress(\n
context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressText() or \'\',\n context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressText() or \'\',\n
context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressRegionTitle() or \'\'),\n context.getSourceSection() and context.getSourceSectionValue().getDefaultAddressRegionTitle() or \'\'),\n
...@@ -192,6 +193,7 @@ data_dict = {\n ...@@ -192,6 +193,7 @@ data_dict = {\n
\'source_section_vatid\': getVatId(context.getSourceSection() and context.getSourceSectionValue().getVatCode() or \'\'),\n \'source_section_vatid\': getVatId(context.getSourceSection() and context.getSourceSectionValue().getVatCode() 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 and context.getSourceDecisionValue().getDefaultImagePath() or \'\',\n
\'source_decision_address\': getOneLineAddress(\n \'source_decision_address\': getOneLineAddress(\n
context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressText() or \'\',\n context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressText() or \'\',\n
context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressRegionTitle() or \'\'),\n context.getSourceDecision() and context.getSourceDecisionValue().getDefaultAddressRegionTitle() or \'\'),\n
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</item> </item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>PackingList_viewAsODT</string> </value> <value> <string>PackingList_printAsODT</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
......
341 342
\ 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