Odoo Help


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.


many2many with more than one field

Francisco Castro
on 2/17/14, 12:50 PM 518 views

HI guys

class xpto

_columns= {

           'code': fields.char('Código', size=20, required='True'),

           'name': fields.char('Designação', size=60, required='True'),

           'lugares_ids': fields.one2many('gs.lugares', 'recinto_id', 'Lugares'),

           'active': fields.boolean('Activo')}

ok guys I have these two files , I want to show only the code and the name on the class xpto2 I did this but this only shows the name what I have to do?

class xpto2

_columns = {

    'name': fields.many2many('gs.recintos', 'wizard_recintos_rel', 'wizard_id', 'recinto_id',""),


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

0 follower(s)


Asked: 2/17/14, 12:50 PM
Seen: 518 times
Last updated: 3/16/15, 8:10 AM