Commit 21811896 authored by Aurel's avatar Aurel

trade printout : also customize title for packing list

parent 98176869
......@@ -335,8 +335,11 @@ destination_decision = context.getDestinationDecisionValue()\n
if destination_decision is None:\n
destination_decision = EmptyOrganisation()\n
\n
report_title = context.getSimulationState() == "draft" and "Draft Order" or "Order"\n
\n
if context.getPortalType() in context.getPortalObject().getPortalOrderTypeList():\n
report_title = context.getSimulationState() == "draft" and "Draft Order" or "Order"\n
else:\n
report_title = context.getSimulationState() == "draft" and "Draft Packing List" or "Packing List"\n
\n
data_dict = {\n
\'report_title\' : report_title,\n
\'source_section_title\': source_section.getProperty(\'corporate_name\') or\\\n
......
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