Commit 21fa87bf authored by Yoshinori Okuji's avatar Yoshinori Okuji

2007-09-20 yo

* Set Source Project on Task Report, if all lines share the same Source Project.
* Show Source Project in Task Report Module.
* Enable Report Tree Mode in Task Report Module.
* Add an optional column into Task_viewTaskList to show the state of a Task Report corresponding to each Task.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16488 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 858d2f0a
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ListBox" module="Products.ERP5Form.ListBox"/>
<string>Products.ERP5Form.ListBox</string> <tuple/>
<string>ListBox</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -322,7 +319,48 @@ ...@@ -322,7 +319,48 @@
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple>
<string>delivery.start_date</string>
<string>Starting</string>
</tuple>
<tuple>
<string>delivery.stop_date</string>
<string>Due</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Deliverable to</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Assigned to</string>
</tuple>
<tuple>
<string>total_quantity</string>
<string>Total</string>
</tuple>
<tuple>
<string>task_line_quantity_unit_title</string>
<string>Unit</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
<tuple>
<string>Task_getTaskReportTranslatedSimulationStateTitle</string>
<string>Report State</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -562,11 +600,8 @@ ...@@ -562,11 +600,8 @@
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Method" module="Products.Formulator.MethodField"/>
<string>Products.Formulator.MethodField</string> <tuple/>
<string>Method</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
...@@ -581,11 +616,8 @@ ...@@ -581,11 +616,8 @@
<record id="3" aka="AAAAAAAAAAM="> <record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="Method" module="Products.Formulator.MethodField"/>
<string>Products.Formulator.MethodField</string> <tuple/>
<string>Method</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -313,40 +313,7 @@ ...@@ -313,40 +313,7 @@
<item> <item>
<key> <string>all_columns</string> </key> <key> <string>all_columns</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>delivery.start_date</string>
<string>Starting</string>
</tuple>
<tuple>
<string>delivery.stop_date</string>
<string>Due</string>
</tuple>
<tuple>
<string>destination_title</string>
<string>Deliverable to</string>
</tuple>
<tuple>
<string>source_title</string>
<string>Assigned to</string>
</tuple>
<tuple>
<string>total_quantity</string>
<string>Total</string>
</tuple>
<tuple>
<string>quantity_unit_title</string>
<string>Unit</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
...@@ -367,6 +334,10 @@ ...@@ -367,6 +334,10 @@
<string>title</string> <string>title</string>
<string>Title</string> <string>Title</string>
</tuple> </tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple> <tuple>
<string>delivery.start_date</string> <string>delivery.start_date</string>
<string>Starting</string> <string>Starting</string>
...@@ -400,7 +371,9 @@ ...@@ -400,7 +371,9 @@
</item> </item>
<item> <item>
<key> <string>count_method</string> </key> <key> <string>count_method</string> </key>
<value> <string></string> </value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item> </item>
<item> <item>
<key> <string>css_class</string> </key> <key> <string>css_class</string> </key>
...@@ -478,7 +451,7 @@ ...@@ -478,7 +451,7 @@
<item> <item>
<key> <string>list_method</string> </key> <key> <string>list_method</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -519,7 +492,7 @@ ...@@ -519,7 +492,7 @@
</item> </item>
<item> <item>
<key> <string>report_tree</string> </key> <key> <string>report_tree</string> </key>
<value> <int>0</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>search</string> </key> <key> <string>search</string> </key>
...@@ -578,6 +551,22 @@ ...@@ -578,6 +551,22 @@
</pickle> </pickle>
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle>
<tuple>
<global name="Method" module="Products.Formulator.MethodField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>method_name</string> </key>
<value> <string>countFolder</string> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="3" aka="AAAAAAAAAAM=">
<pickle> <pickle>
<tuple> <tuple>
<global name="Method" module="Products.Formulator.MethodField"/> <global name="Method" module="Products.Formulator.MethodField"/>
......
...@@ -73,15 +73,25 @@ packing_list.PackingList_copyOrderProperties()\n ...@@ -73,15 +73,25 @@ packing_list.PackingList_copyOrderProperties()\n
packing_list = context\n packing_list = context\n
related_order = packing_list.getCausalityValue()\n related_order = packing_list.getCausalityValue()\n
\n \n
if packing_list.getSimulationState()==\'draft\':\n if packing_list.getSimulationState() == \'draft\':\n
packing_list.edit(\n packing_list.edit(\n
comment = related_order.getComment(),\n comment=related_order.getComment(),\n
delivery_mode = related_order.getDeliveryMode(),\n delivery_mode=related_order.getDeliveryMode(),\n
incoterm = related_order.getIncoterm(),\n incoterm=related_order.getIncoterm(),\n
source_administration_value = related_order.getSourceAdministrationValue(),\n source_administration_value=related_order.getSourceAdministrationValue(),\n
title = related_order.getTitle()\n title=related_order.getTitle()\n
)\n )\n
\n \n
# Copy Source Project only if all Task Report Lines share the same value.\n
marker = source_project_value = []\n
for packing_list_line in packing_list.contentValues(filter={\'portal_type\': \'Task Report Line\'}):\n
if source_project_value is marker:\n
source_project_value = packing_list_line.getSourceProjectValue()\n
elif source_project_value != packing_list_line.getSourceProjectValue():\n
source_project_value = marker\n
break\n
if source_project_value is not marker:\n
packing_list.setSourceProjectValue(source_project_value)\n
\n \n
# If security definitions are implemented on the packing list, it is time to apply them\n # If security definitions are implemented on the packing list, it is time to apply them\n
packing_list.assignRoleToSecurityGroup()\n packing_list.assignRoleToSecurityGroup()\n
...@@ -178,6 +188,10 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm ...@@ -178,6 +188,10 @@ packing_list.activate(after_method_id=(\'immediateReindexObject\',\'recursiveImm
<string>packing_list</string> <string>packing_list</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>related_order</string> <string>related_order</string>
<string>marker</string>
<string>source_project_value</string>
<string>_getiter_</string>
<string>packing_list_line</string>
<string>source_person</string> <string>source_person</string>
<string>destination_decision_person</string> <string>destination_decision_person</string>
<string>None</string> <string>None</string>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>task_report = context.getCausalityRelatedValue(portal_type=\'Task Report\')\n
if task_report is not None:\n
return task_report.getTranslatedSimulationStateTitle()\n
</string> </value>
</item>
<item>
<key> <string>_code</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_filepath</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>func_code</string> </key>
<value>
<object>
<klass>
<global name="FuncCode" module="Shared.DC.Scripts.Signature"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>task_report</string>
<string>None</string>
</tuple>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>func_defaults</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Task_getTaskReportTranslatedSimulationStateTitle</string> </value>
</item>
<item>
<key> <string>warnings</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
2007-09-20 yo
* Set Source Project on Task Report, if all lines share the same Source Project.
* Show Source Project in Task Report Module.
* Enable Report Tree Mode in Task Report Module.
* Add an optional column into Task_viewTaskList to show the state of a Task Report corresponding to each Task.
2007-09-20 yo 2007-09-20 yo
* Fix an undefined symbol. * Fix an undefined symbol.
......
293 294
\ 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