Commit 28a0d101 authored by Yusei Tahara's avatar Yusei Tahara

2008-09-22 yusei

* Fixed Generate References bug.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23746 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c822ffa5
......@@ -9,22 +9,10 @@
</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>
......@@ -75,7 +63,7 @@ current_type = context.getPortalType()\n
if not reference: reference=\'R\'\n
\n
def generateReference(prefix, order, portal_type):\n
for order_line in order.contentValues(portal_type=portal_type):\n
for order_line in order.contentValues(portal_type=portal_type, checked_permission=\'View\', sort_on=\'int_index\'):\n
new_prefix = "%s-%s" % (prefix, order_line.getIntIndex(order_line.getId()))\n
generateReference(new_prefix, order_line, portal_type)\n
order_line.setReference(new_prefix)\n
......@@ -94,18 +82,6 @@ return context.Base_redirect(form_id, keep_items = {\'portal_status_message\' :
<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>dialog_id=None, form_id=\'view\', reference=None, **kw</string> </value>
......
2008-09-22 yusei
* Fixed Generate References bug.
2008-09-16 Kazuhiko
* revise task_invoice_builder and task_report_builder using new API.
* use delivery_causality_workflow instead of invoice_causality_workflow in Task Report.
......
600
\ No newline at end of file
601
\ 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