There are deferent ways of inheritance. check the docs:
http://doc.openerp.com/developer/2_5_Objects_Fields_Methods/object_inherits.html
http://doc.openerp.com/developer/2_5_Objects_Fields_Methods/object_inherit.html

It looks that you want a custom class of res.partner where you only add the 
one2many contract field.
has you are inheriting from a single parent class you'd detter use _inherit and 
only the new field needs to be declared

class rentcar_client(osv.osv):
   _name = 'rentcar.client'
   _inherit = 'res.partner'
   columns = {
      'contrat': 
fields.one2many('rentcar.contrat','client_id','Contrat')
         } 




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=35941#35941

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to