Commit 2b18559a authored by Romain Courteaud's avatar Romain Courteaud

Check link to Resource_viewMovementHistory

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14119 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84582a33
......@@ -64,29 +64,44 @@
<td tal:content="python: \'link=+ %s\' % link_title">link=+ node</td>\n
<td></td>\n
</tr>\n
\n
<!-- Check inventory -->\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td tal:content="python: \'%s record(s)\' % movement_count">number of record(s)</td>\n
</tr>\n
<tal:block tal:condition="python: movement_count != 0">\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[3]</td>\n
<td tal:content="python: current_inventory">current inventory</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[4]</td>\n
<td tal:content="python: available_inventory">available inventory</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[5]</td>\n
<td tal:content="python: future_inventory">future inventory</td>\n
</tr>\n
</tal:block>\n
\n
<!-- Check that inventory and movement list are consistent -->\n
<tal:block tal:repeat="inventory_tuple python: [(current_inventory, 3),\n
(available_inventory, 4),\n
(future_inventory, 5),\n
]">\n
<tr>\n
<td>verifyText</td>\n
<td tal:content="python: \'//tr[@id=\\\'listbox_data_line_0\\\']/td[%s]\' % inventory_tuple[1]">inventory value</td>\n
<td tal:content="python: inventory_tuple[0]">current inventory</td>\n
</tr>\n
<!-- Check movement history list -->\n
<tr>\n
<td>clickAndWait</td>\n
<td tal:content="python: \'//tr[@id=\\\'listbox_data_line_0\\\']/td[%s]/a[1]\' % inventory_tuple[1]">link</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td tal:content="python: \'%s record(s)\' % int(abs(inventory_tuple[0]))">number of movement(s)</td>\n
</tr>\n
<!-- Go back to inventory view -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>//a[@id="listbox_title"]</td>\n
<td></td>\n
</tr>\n
</tal:block>\n
</tal:block>\n
</tal:block>\n
</tal:block>
......
......@@ -105,6 +105,7 @@ if state in [\'planned\', \'ordered\']:\n
order.portal_workflow.doActionFor(order, \'plan_action\')\n
if state == \'ordered\':\n
order.portal_workflow.doActionFor(order, \'order_action\')\n
delivery = order\n
\n
else:\n
module = portal.getDefaultModule(delivery_portal_type)\n
......
3
\ No newline at end of file
5
\ 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