hi, I am facing issues related to creating views in inherited objects. I am planning to add a dealer module. Here is my python file. How to create views for it?
dealer.py
from openerp.osv import osv,fields
class dealer(osv.Model):
_name = 'dealer'
_inherit = { 'res.partner': 'partner_id', }
_columns = { 'name': fields.char('Name', size = 30,required=True),
'region_id': fields.many2one('region.region', 'Region'), }
How to include the partner table info in my view. Pls help me with some examples.
can you explain your needs clearly
Hi Parvathy Vijayan,
I am planning to create a new module dealer. I want to treat this dealer as a partner.All his contact info must be saved in partner and other info will be saved in dealer. That's why i am inheriting the partner module. But the problem is that how to include the fields associated with partner in my view. Please give an explanation with some examples. Its similar to res_user but i can't understand the view associated with that module.