I am try create a new Module. I define in the first class some columns(type=char) in these are some field names and I want to display these enteries as fields in another class.
But I don't really understand some parts of the following function.
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): result = super(categories, self).fields_view_get(cr, uid, view_id, view_type, context, toolbar,submenu)
What does the next line do? Can I specify here the classes from where the function will read the fields?
school_obj = self.pool.get('sim.categories') result['arch'] return result
How can I tell the function to get the fields from a specific class and how can I display the result in a form for debugging and testing?
Can you give me a Module name in which a dynamic field view was already realized? I think in post_return from v6 is something that I want. Is this code compatible to v7 or give it a better solution?
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: 4/9/13, 6:15 PM|
|Seen: 2469 times|
|Last updated: 3/16/15, 8:10 AM|