Odoo Help

0

many2one display record number

By
Oscar Cascante F
on 7/22/13, 10:47 PM 701 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!

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.

Register

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)

Stats

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