This question has been flagged
1 Reply
7978 Views



I want to run my form with the 

widget="many2many_tags" in my selection

template.xml : 

<div class="col-md-7 col-sm-8 ">

<select id="membre_interne" name="x_membre_interne" class="form-control o_form_input_dropdown" >

<option value="" >Sélectionnez...</option>

<t t-foreach="users" t-as="user">

<option value="" t-att-value="user.login" >

<!--- <field name="x_membre_interne" widget="many2many_tags" /> -->
<t t-esc="user.login"/>

</option>

</t>
</select>
</div>

And in my model.py  my fields is already in many2many : 

x_membre_interne = fields.Many2many("res.users", string="many2many_tags" , readonly=0, website_form_blacklisted=0, Store=True)

Thanks for your help, 

Regards

Avatar
Discard
Best Answer

hello

this same kind of example you can find inside the website_forum module.

while you post a new question, at that time you can select many tags  with the question.

you can take the reference from that.

Hope this will helps you.

Avatar
Discard

+1 for Good example. It would have been more helpful if you would have post the code or git link that refer to code.

Author

How can i post a screen shot in order to be more understanding?