Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1488 Näkymät

Version 16.0

Hi guys,

I built a module that create questions and group them into categories. Basically a question bank.

Now I am trying to integrate it into surveys. I am figuring out if I can customize the control to open a popup that would let me select a category and it will populate the list or do it by


name="question_and_page_ids" nolabel="1" widget="question_page_one2many" mode="tree,kanban" context="{'default_survey_id': active_id, 'default_questions_selection': questions_selection}" attrs="{'invisible': [('is_exam', '=', True)]}">
decoration-bf="is_page">

....................




I am not able to upload image but code above is what I am working on.

Hope someone can point me to the right direction. Thanks





 

Avatar
Hylkää
Tekijä

For some reason, parts of the question got missing.

This below should be right be right below the .....

<control>
<button name="add_question_button" string="Add questions from Bank" type="object" class="oe_highlight"/>
<create name="add_question_control" string="Add questions from Bank"/>
<create name="add_section_control" string="Add a section" context="{'default_is_page': True, 'default_questions_selection': 'all'}"/>
</control>

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
huhtik. 23
2951
1
elok. 25
1832
0
lokak. 24
1401
3
syysk. 24
5359
2
maalisk. 24
3546