Odoo Help

Welcome!

This community 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.

0

How to browse many2many field values in odoo?

By
Jo
on 12/16/15, 5:01 AM 783 views

Hi all

How to browse many2many field values in odoo?

0
Deepak Krishna
On 12/16/15, 6:26 AM

hope this will help you...

_columns = {

         'A_ids': fields.many2many('objectA', 'objectAB_rel','B_id','A_id', 'Aid'), 

.}

list=[]

a_obj=self.browse(cr,uid,context=context)

list += [x.A_id for x in a_obj.A_ids]




Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/16/15, 5:01 AM
Seen: 783 times
Last updated: 12/16/15, 6:26 AM