Odoo Help


many2one display record number

Oscar Cascante F
on 7/22/13, 10:47 PM 603 views


I am new with openerp 7. I created a module:

class file1(osv.Model): _name = 'file1' _order = 'identificacion asc' _columns = { 'identificacion': fields.char('Identificacion', required=True), 'zona': fields.many2one('file2','Zonas',select=True,type='char'), ......

class file2(osv.Model): _name = 'file2' _order = 'zona asc' _columns = { 'zona': fields.char('Zona', required=True, priority=1), 'tipo': fields.char('Tipo', required=True),


In the file2 form view, the "zona" field shows the file,record number instead the value of the file2.zona.value

Thanks for help!

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 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

0 follower(s)


Asked: 7/22/13, 10:47 PM
Seen: 603 times
Last updated: 3/16/15, 8:10 AM