I just discovered the osv.Model init() and view_init() functions, which are really useful for some of the things I want to do. However, I'd like to be able to have my custom module come pre-loaded with some data when it's installed (or upgraded/reloaded). Is there a function that would allow this, similar to how init() lets me do things on module initialization?
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: 5/22/14, 1:32 PM|
|Seen: 546 times|
|Last updated: 3/16/15, 8:10 AM|