Commit 8a9ff7ea authored by Nicolas Delaby's avatar Nicolas Delaby

Reinstallation is done against a User choices (listbox)

simulate this behaviour with default actions.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33850 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 334db485
...@@ -2421,7 +2421,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -2421,7 +2421,11 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
Install importzed business template Install importzed business template
""" """
import_bt = sequence.get('current_bt') import_bt = sequence.get('current_bt')
import_bt.reinstall() listbox_object_list = import_bt.BusinessTemplate_getModifiedObject()
install_kw = {}
for listbox_line in listbox_object_list:
install_kw[listbox_line.object_id] = listbox_line.choice_item_list[0][1]
import_bt.reinstall(object_to_update=install_kw)
def stepCheckBeforeReinstall(self, sequence=None, sequence_list=None, **kw): def stepCheckBeforeReinstall(self, sequence=None, sequence_list=None, **kw):
""" """
......
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