Odoo Help

Welcome!

This community 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.

0

Create my own form, tree, kanban, calendar, ... views. Is it possible?

By
Eduardo BP
on 4/28/15, 10:02 PM 1,122 views

Hi,

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.

<act_window id="action_todo_task"
name="To-do Task"
res_model="todo.task"
view_mode="tree,form" />

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, ...)

What I need to know is whether I can create my own tree view (or form, kanban, calendar, ...) as a normal page with CSS, HTML and JavaScript.

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.

Thanks.

Did you have alook there : https://www.odoo.com/documentation/8.0/howtos/backend.html

Mind & Go, Mind And Go
on 5/4/15, 10:01 AM

I have already read two of the Odoo official tutorials for developers. But I want to personalize the default views. For instance, in the default gantt view, I want to display hours instead days in the top section of the gantt.

Eduardo BP
on 5/5/15, 7:44 PM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 4/28/15, 10:02 PM
Seen: 1122 times
Last updated: 5/5/15, 7:44 PM