This question has been flagged
2049 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!

Avatar
Discard