コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3355 ビュー

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
3136
1
3月 15
4021
1
11月 23
2205
2
5月 23
7380
1
9月 22
3641