Commit 0c3e2d89 authored by Jérome Perrin's avatar Jérome Perrin

rename portal_type parameter to line_portal_type

Previously, portal_type parameter was passed in REQUEST and stored in the selection for the next listbox, which can be listing objects of another portal_type
parent 6b5c8c0b
......@@ -73,7 +73,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?portal_type=Accounting+Transaction+Line</string> </value>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?line_portal_type=Accounting+Transaction+Line</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -73,7 +73,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?portal_type=Internal+Invoice+Transaction+Line</string> </value>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?line_portal_type=Internal+Invoice+Transaction+Line</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -73,7 +73,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?portal_type=Accounting+Transaction+Line</string> </value>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?line_portal_type=Accounting+Transaction+Line</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -73,7 +73,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?portal_type=Purchase+Invoice+Transaction+Line</string> </value>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?line_portal_type=Purchase+Invoice+Transaction+Line</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -73,7 +73,7 @@
<dictionary>
<item>
<key> <string>text</string> </key>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?portal_type=Sale+Invoice+Transaction+Line</string> </value>
<value> <string>string:${object_url}/AccountingTransaction_viewAddAccountingTransactionLineDialog?line_portal_type=Sale+Invoice+Transaction+Line</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -58,7 +58,7 @@ from Products.ERP5Type.Message import translateString\n
request = container.REQUEST\n
\n
for i in range(line_count):\n
context.newContent(portal_type=portal_type)\n
context.newContent(portal_type=line_portal_type)\n
\n
request.set(\'portal_status_message\',\n
translateString(\'Accounting Transaction Lines added.\'),)\n
......@@ -67,7 +67,7 @@ return getattr(context, form_id)()\n
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>form_id=\'view\', portal_type=\'Accounting Transaction Line\', line_count=1</string> </value>
<value> <string>form_id=\'view\', line_portal_type=\'Accounting Transaction Line\', line_count=1</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -86,7 +86,7 @@
<key> <string>left</string> </key>
<value>
<list>
<string>your_portal_type</string>
<string>your_line_portal_type</string>
<string>your_line_count</string>
</list>
</value>
......
......@@ -8,7 +8,7 @@
<dictionary>
<item>
<key> <string>id</string> </key>
<value> <string>your_portal_type</string> </value>
<value> <string>your_line_portal_type</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
......@@ -267,7 +267,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>request/portal_type</string> </value>
<value> <string>request/line_portal_type</string> </value>
</item>
</dictionary>
</pickle>
......
1507
\ No newline at end of file
1508
\ 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