跳至内容
菜单
此问题已终结
1 回复
3255 查看

todo_view.xml:

<?xml version="1.0"?>
<odoo>
 <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>
 </record>
 <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"/>
</odoo>

todo_model.py:

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

 

形象
丢弃
最佳答案

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.

Cheers,

Ankit H Gandhi.

形象
丢弃
相关帖文 回复 查看 活动
1
2月 18
3042
1
3月 15
3895
1
11月 23
2054
2
5月 23
7198
1
9月 22
3478