I'm a newbie in Odoo v8 development and I'm following the different tutorials from Odoo webpage.
My question is related to create my own tree, form, calendar, kanban, ... views and not to use the Odoo predefined views.
When I create a view (view.xml) for a module, I can associate a menu to an action and an action to one or more views.
Then, I can create a record in the view.xml file to show the Odoo predefined tree view with different fields from my module
<record id="view_tree_todo_task" model="ir.ui.view"> <field name="name">To-do Task Tree</field> <field name="model">todo.task</field> <field name="arch" type="xml"> <tree> <field name="name"/> <field name="is_done"/> </tree> </field> </record>
When i clic in the menu, I can see the tree view. The Odoo graphic interface has some buttons to activate the differents view (tree, form, kanban, ...)
Is it possible creating a qweb template?. In this case, how I can refer to my model fields (from the .py file) from the template?.
And how I can associate an action menu to my personalized qweb template view?.
I know that they are many difficult questions, but I would appreciate any help to follow my learning.
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/28/15, 10:02 PM|
|Seen: 1047 times|
|Last updated: 5/5/15, 7:44 PM|