Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/9/13, 6:15 PM|
|Seen: 3103 times|
|Last updated: 3/16/15, 8:10 AM|