i have a problem understanding how to call methods on objects in openERP:
sometimes the method is called with only one parameter, sometimes with all the parameters, sometimes a few, sometimes you can omit the 'self' parameter, aargghh...
The exceptions i get (when calling a method wrongly) are also very confusing (in terms of nr of parameters)
Practically i always have to 'brute force/guess' every possibility before i can make a call, i just don't understand the logic. All my time is wasted on this stupid 'guessing-work'
Calling the function according to the prototype just does't seem to work in 90% of the cases.
It's so confusing, i'm very used to C++/Java and this method calling is really giving me a headache, 90% of my time is spent on how to figure out the correct way to call it. The prototypes of the methods just don't make any sense on how to call them.
Can someone please explain what i need to read/learn so i understand how to call member functions in openErp without always guessing the parameters (type,nr,..)?
thank you very much if you can help me
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: 7/17/13, 12:42 PM|
|Seen: 979 times|
|Last updated: 3/16/15, 8:10 AM|