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

many2one display record number

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

Hello,

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

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