Odoo Help


How to define a many2one field as selection field in odoo website shopping cart?

on 7/28/16, 5:53 AM 1,146 views

Hello everyone.

Can anyone know, how to display customized many2one field as selection field in website shopping cart. Please share the ideas(also code).Thanks in advance

dear vadivel,

If i understood you right , I think you need to add widget="selection" on your many2one field.

I hope I helped you.

ayman mohammed adam
on 7/28/16, 6:41 AM
Odoo Developer
On 7/28/16, 7:24 AM

Try it...

Pass all model  objects of the many2one field to the template.

then ...


    <t t-foreach="all_objects" t-as="each_objects">

            <t t-esc="each_objects.name"/>


Don't forget to close the <t>-Tag with </t>.

on 7/28/16, 7:31 AM

tank u , i shall ...

Odoo Developer
on 7/28/16, 7:37 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/28/16, 5:53 AM
Seen: 1146 times
Last updated: 7/28/16, 7:24 AM