Check out this documentation page on inheritence. There are various ways to inherit an object, depending on how do you want to "use" the field in the other class from the new class, that is provided by OpenERP.
Inheritence is not really necessary if you don't want to re-use the same methods, etc. You can just re-define the fields.
Use name not equal to inheritance
from openerp import models,fields,api,_
_name = 'inheritance.0'
name = fields.Char()
_name = 'inheritance.1'
_inherit = 'inheritance.0'
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/2/15, 1:04 AM|
|Seen: 525 times|
|Last updated: 3/16/15, 8:10 AM|