Odoo Help


Why not all model fields shown in defalt view?

on 2/22/16, 7:07 AM 383 views


<?xml version="1.0"?>
 <record model="ir.actions.act_window" id="action_todo_task">
 <field name="name">To-Do Task</field>
 <field name="res_model">todo.task</field>
 <field name="view_mode">tree, form</field>
 <menuitem id="main_menu_todo_task" name="To-Do App" />
 <menuitem id="menu_todo_task" name="To-Do Task" parent="main_menu_todo_task"/>
 <menuitem id="todo_task_menu" name="Tasks" parent="menu_todo_task" action="action_todo_task"/>


# -*- coding: utf-8 -*-
from openerp import models, fields
class ToDoTask(models.Model):
 _name = "todo.task"
 name = fields.Char('Descrition', required = True)
 is_done = fields.Boolean('Done?')
 active = fields.Boolean('Active?', default = True)

When I go to view, there is only 'Description' and one checkbox without title.



Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--
Ankit H Gandhi(AHG)
| 5 3 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 2/23/16, 3:17 AM

Dear Roman,

You need to create new form view and define all the fields then after you will show fields.

without create form view, you can show only name field.


Ankit H Gandhi.

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


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 2/22/16, 7:07 AM
Seen: 383 times
Last updated: 2/23/16, 3:17 AM