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

View Creation problem? [Closed]

By
Praveen S
on 7/5/13, 8:49 AM 428 views

The Question has been closed for reason: duplicate question

by
patrick
on 07/05/2013 09:57:55

hi, I am new to open erp please give instruction to create views for one2many fields. My module file is here i don't know how to create views for it pls help me.

region.py

from openerp.osv import osv,fields 

class region(osv.Model):
    _name = 'region.region'
     _columns = { 
        'name': fields.char('Name', size = 100), 
        'region_rel': fields.one2many('region.region.relation', 'rel_id', 'Region Relation'),
    }

class regionrel(osv.Model): 
    _name = 'region.region.relation'    
    _columns = { 
        'rel_id': fields.many2one('region.region', 'Region'),
        'country': fields.many2one('res.country', 'Country'), 
        'state': fields.many2one('res.country.state', 'State'), 
    }

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/5/13, 8:49 AM
Seen: 428 times
Last updated: 3/16/15, 8:10 AM