Commit b330fb33 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_knowledge_pad_ui_test: pass correct arguments to relation setter methods

parent 5f346790
...@@ -10,7 +10,7 @@ contained_gadgets = [x.getSpecialiseValue().getRelativeUrl() \ ...@@ -10,7 +10,7 @@ contained_gadgets = [x.getSpecialiseValue().getRelativeUrl() \
if gadget_relative_url not in contained_gadgets: if gadget_relative_url not in contained_gadgets:
# add only if not there # add only if not there
knowledge_box = active_pad.newContent(portal_type='Knowledge Box') knowledge_box = active_pad.newContent(portal_type='Knowledge Box')
knowledge_box.setSpecialiseValue(gadget_relative_url) knowledge_box.setSpecialise(gadget_relative_url)
knowledge_box.visible() knowledge_box.visible()
else: else:
# reuse gadget # reuse gadget
......
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