I want to edit some models trough inheriting. I don't know which methods I need to implement. I saw in other modules that there are methods like copy, on_create, etc. Can anyone help me?
Basically you only need to override methods that you would like to use. If you for example only want to add fields, you can just define them. If you want something done when saving or creating a record, you need to inherit the appropriate method. Every object has a set of methods which are defined here:
https://doc.odoo.com/trunk/server/api_models/ (as soon as it gets back online)
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: 8/15/14, 7:45 AM|
|Seen: 871 times|
|Last updated: 3/16/15, 8:10 AM|