1 <?xml version="1.0" encoding="UTF-8"?>
6 <record model="ir.ui.view" id="todolist_form_view">
7 <field name="name">container.form</field>
8 <field name="model">todolist.container</field>
9 <field name="arch" type="xml">
10 <form string="Todolist Form" version="7.0">
12 <button string="Start" type="object" name="action_start" states="draft" class="oe_highlight" />
13 <button string="Stop" type="object" name="action_stop" states="pending" class="oe_highlight" />
14 <button string="Restart" type="object" name="action_restart" states="pending,done" class="oe_highlight" />
15 <field name="state" widget="statusbar" />
18 <label for="name" class="oe_edit_only"/>
19 <h1><field name="name" nolabel="1" /></h1>
20 <field name="topic_ids" widget="many2many_tags" nolabel="1"/>
21 <label for="description" />
22 <field name="description" nolabel="1" />
23 <p><label for="number_tasks" class="oe_inline"/>
24 <field name="number_tasks" nolabel="1" class="oe_inline"/></p>
25 <label for="number_tasks_done" class="oe_inline"/>
26 <field name="number_tasks_done" nolabel="1" class="oe_inline"/>
27 <field name="progress_tasks" widget="progressbar" />
28 <notebook colspan="4">
30 <group colspan="4" col="1">
31 <label for="target" />
32 <field name="target" nolabel="1" />
33 <label for="milestone" />
34 <field name="milestone" nolabel="1" />
35 <label for="manday" />
36 <field name="manday" nolabel="1" />
40 <group colspan="4" col="1">
41 <field name="tasks" nolabel="1" mode="tree">
42 <tree string="Tasks" editable="1" colors="red:priority=='essential';
43 #FF5800:priority=='necessary';
44 black:priority=='useful'">
46 <field name="description"/>
47 <field name="milestone"/>
48 <field name="planned"/>
49 <field name="manday"/>
50 <field name="priority"/>
57 <div class="oe_chatter">
58 <field name="message_follower_ids" widget="mail_followers"/>
59 <field name="message_ids" widget="mail_thread" options="{'thread_level': 1}"/>
66 <record model="ir.ui.view" id="todolist_kanban_view">
67 <field name="name">container.kanban</field>
68 <field name="model">todolist.container</field>
69 <field name="arch" type="xml">
72 <t t-name="kanban-box">
73 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
74 <div class="oe_dropdown_kanban">
76 <div class="oe_dropdown_toggle">
77 <span class="oe_e">X</span>
78 <ul class="oe_dropdown_menu">
79 <li><a type="delete">Delete</a></li>
82 <div class="oe_clear" />
85 <div t-attf-class="oe_kanban_content">
86 <h2><field name="name" /></h2>
87 <field name="description" />
98 <record model="ir.ui.view" id="topic_form_view">
99 <field name="name">topic.form</field>
100 <field name="model">semantics.topic</field>
101 <field name="arch" type="xml">
102 <form string="Topic Form" version="7.0">
104 <group colspan="4" col="4">
105 <label for="name" colspan="3"/>
106 <label for="activated" colspan="1"/>
107 <field name="name" nolabel="1" colspan="3"/>
108 <field name="activated" nolabel="1" colspan="1"/>
111 <label for="description"/>
112 <field name="description" nolabel="1"/>
113 <label for="nb_lists" />
114 <field name="nb_lists" nolabel="1" />
115 <field name="progress_tasks" colspan="3" widget="progressbar" />
118 <div class="oe_chatter">
119 <field name="message_follower_ids" widget="mail_followers"/>
120 <field name="message_ids" widget="mail_thread" options="{'thread_level': 1}"/>
127 <record model="ir.ui.view" id="topic_kanban_view">
128 <field name="name">topic.kanban</field>
129 <field name="model">semantics.topic</field>
130 <field name="arch" type="xml">
131 <kanban default_group_by="activated">
133 <t t-name="kanban-box">
134 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
135 <div class="oe_dropdown_kanban">
137 <div class="oe_dropdown_toggle">
138 <span class="oe_e">X</span>
139 <ul class="oe_dropdown_menu">
140 <li><a type="delete">Delete</a></li>
143 <div class="oe_clear" />
145 <div t-attf-class="oe_kanban_content">
146 <h1><field name="name" /></h1>
147 <field name="description" />
157 <record model="ir.ui.view" id="task_form_view">
158 <field name="name">task.form</field>
159 <field name="model">todolist.task</field>
160 <field name="arch" type="xml">
161 <form string="Task Form" version="7.0">
163 <button string="Reset" type="object" name="action_draft" states="proposal,approved,started" class="oe_highlight" />
164 <button string="Propose" type="object" name="action_propose" states="draft,approved,started" class="oe_highlight" />
165 <button string="Approve" type="object" name="action_approve" states="draft,proposal" class="oe_highlight" />
166 <button string="Start" type="object" name="action_start" states="draft,approved" class="oe_highlight" />
167 <button string="Stop" type="object" name="action_done" states="started" class="oe_highlight" />
168 <field name="state" widget="statusbar" />
173 <field name="description" />
174 <field name="milestone" />
175 <field name="planned" />
176 <field name="manday" />
177 <field name="priority" />
178 <field name="container_id" />
181 <div class="oe_chatter">
182 <field name="message_follower_ids" widget="mail_followers"/>
183 <field name="message_ids" widget="mail_thread" options="{'thread_level': 1}"/>
190 <record model="ir.ui.view" id="task_kanban_view">
191 <field name="name">task.kanban</field>
192 <field name="model">todolist.task</field>
193 <field name="arch" type="xml">
194 <kanban default_group_by="priority">
196 <t t-name="kanban-box">
197 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
198 <div class="oe_dropdown_kanban">
200 <div class="oe_dropdown_toggle">
201 <span class="oe_e">X</span>
202 <ul class="oe_dropdown_menu">
203 <li><a type="delete">Delete</a></li>
206 <div class="oe_clear" />
209 <div t-attf-class="oe_kanban_content">
210 <h4><field name="name" /></h4>
211 <p><field name="description" /></p>
212 <p>Planned on <field name="planned" /></p>
222 <record model="ir.actions.act_window" id="todolist_list_action">
223 <field name="name">list of to do lists</field>
224 <field name="res_model">todolist.container</field>
225 <field name="view_mode">kanban,form</field>
226 <field name="help" type="html">
227 <p class="oe_view_nocontent_create">Create your first to do list</p>
232 <record model="ir.actions.act_window" id="topic_list_action">
233 <field name="name">List of topics</field>
234 <field name="res_model">semantics.topic</field>
235 <field name="view_mode">kanban,form</field>
236 <field name="help" type="html">
237 <p class="oe_view_nocontent_create">Créer your first topic</p>
242 <record model="ir.actions.act_window" id="task_list_action">
243 <field name="name">List of tasks</field>
244 <field name="res_model">todolist.task</field>
245 <field name="view_mode">kanban,form</field>
246 <field name="help" type="html">
247 <p class="oe_view_nocontent_create">Create your first task</p>
252 <menuitem id="mt_todolist_menu" name="To do list" parent="semantics.main_semantics_menu" groups="semantics.group_semantics_user" />
254 <menuitem id="mt_todolist_container_menu" name="Lists" parent="mt_todolist_menu" action="todolist_list_action"/>
256 <menuitem id="mt_todolist_task_menu" name="Tasks" parent="mt_todolist_menu" action="task_list_action" />
258 <menuitem id="mt_settings_menu" name="Settings" parent="mt_todolist_menu" groups="semantics.group_semantics_manager" />
260 <menuitem id="mt_todolist_topic_menu" name="Topics" parent="mt_settings_menu" action="topic_list_action" />