콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3248 화면

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
3041
1
3월 15
3891
1
11월 23
2052
2
5월 23
7195
1
9월 22
3469