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 <group colspan="4" col="3">
19 <label for="name" colspan="1" />
20 <field name="name" colspan="2" nolabel="1" />
21 <label for="description" colspan="1" />
22 <field name="description" colspan="2" nolabel="1" />
23 <label for="number_tasks" colspan="1" />
24 <field name="number_tasks" colspan="2" nolabel="1" />
25 <label for="number_tasks_done" colspan="1" />
26 <field name="number_tasks_done" colspan="2" nolabel="1" />
27 <field name="progress_tasks" colspan="3" widget="progressbar" />
29 <notebook colspan="4">
31 <group colspan="4" col="1">
32 <label for="target" />
33 <field name="target" nolabel="1" />
34 <label for="milestone" />
35 <field name="milestone" nolabel="1" />
36 <label for="manday" />
37 <field name="manday" nolabel="1" />
41 <group colspan="4" col="1">
42 <field name="tasks" nolabel="1" mode="tree">
43 <tree string="Tasks" editable="1" colors="red:priority=='essential';
44 #FF5800:priority=='necessary';
45 black:priority=='useful'">
47 <field name="description"/>
48 <field name="milestone"/>
49 <field name="planned"/>
50 <field name="manday"/>
51 <field name="priority"/>
56 <page string="Topics">
57 <group colspan="4" col="1">
58 <field name="topics_id"/>
63 <div class="oe_chatter">
64 <field name="message_follower_ids" widget="mail_followers"/>
65 <field name="message_ids" widget="mail_thread" options="{'thread_level': 1}"/>
72 <record model="ir.ui.view" id="todolist_kanban_view">
73 <field name="name">container.kanban</field>
74 <field name="model">todolist.container</field>
75 <field name="arch" type="xml">
78 <t t-name="kanban-box">
79 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
80 <div class="oe_dropdown_kanban">
82 <div class="oe_dropdown_toggle">
83 <span class="oe_e">X</span>
84 <ul class="oe_dropdown_menu">
85 <li><a type="delete">Delete</a></li>
88 <div class="oe_clear" />
91 <div t-attf-class="oe_kanban_content">
92 <h2><field name="name" /></h2>
93 <field name="description" />
104 <record model="ir.ui.view" id="topic_form_view">
105 <field name="name">topic.form</field>
106 <field name="model">todolist.topic</field>
107 <field name="arch" type="xml">
108 <form string="Topic Form" version="7.0">
110 <group colspan="4" col="4">
111 <label for="name" colspan="3"/>
112 <label for="activated" colspan="1"/>
113 <field name="name" nolabel="1" colspan="3"/>
114 <field name="activated" nolabel="1" colspan="1"/>
117 <label for="description"/>
118 <field name="description" nolabel="1"/>
119 <label for="nb_lists" />
120 <field name="nb_lists" nolabel="1" />
121 <field name="progress_tasks" colspan="3" widget="progressbar" />
129 <record model="ir.ui.view" id="topic_kanban_view">
130 <field name="name">topic.kanban</field>
131 <field name="model">todolist.topic</field>
132 <field name="arch" type="xml">
133 <kanban default_group_by="activated">
135 <t t-name="kanban-box">
136 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
137 <div class="oe_dropdown_kanban">
139 <div class="oe_dropdown_toggle">
140 <span class="oe_e">X</span>
141 <ul class="oe_dropdown_menu">
142 <li><a type="delete">Delete</a></li>
145 <div class="oe_clear" />
147 <div t-attf-class="oe_kanban_content">
148 <h1><field name="name" /></h1>
149 <field name="description" />
159 <record model="ir.ui.view" id="task_form_view">
160 <field name="name">task.form</field>
161 <field name="model">todolist.task</field>
162 <field name="arch" type="xml">
163 <form string="Task Form" version="7.0">
165 <button string="Reset" type="object" name="action_draft" states="proposal,approved,started" class="oe_highlight" />
166 <button string="Propose" type="object" name="action_propose" states="draft,approved,started" class="oe_highlight" />
167 <button string="Approve" type="object" name="action_approve" states="draft,proposal" class="oe_highlight" />
168 <button string="Start" type="object" name="action_start" states="draft,approved" class="oe_highlight" />
169 <button string="Stop" type="object" name="action_done" states="started" class="oe_highlight" />
170 <field name="state" widget="statusbar" />
175 <field name="description" />
176 <field name="milestone" />
177 <field name="planned" />
178 <field name="manday" />
179 <field name="priority" />
180 <field name="container_id" />
183 <div class="oe_chatter">
184 <field name="message_follower_ids" widget="mail_followers"/>
185 <field name="message_ids" widget="mail_thread" options="{'thread_level': 1}"/>
192 <record model="ir.ui.view" id="task_kanban_view">
193 <field name="name">task.kanban</field>
194 <field name="model">todolist.task</field>
195 <field name="arch" type="xml">
196 <kanban default_group_by="priority">
198 <t t-name="kanban-box">
199 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
200 <div class="oe_dropdown_kanban">
202 <div class="oe_dropdown_toggle">
203 <span class="oe_e">X</span>
204 <ul class="oe_dropdown_menu">
205 <li><a type="delete">Delete</a></li>
208 <div class="oe_clear" />
211 <div t-attf-class="oe_kanban_content">
212 <h4><field name="name" /></h4>
213 <p><field name="description" /></p>
214 <p>Planned on <field name="planned" /></p>
224 <record model="ir.actions.act_window" id="todolist_list_action">
225 <field name="name">list of to do lists</field>
226 <field name="res_model">todolist.container</field>
227 <field name="view_mode">kanban,form</field>
228 <field name="help" type="html">
229 <p class="oe_view_nocontent_create">Create your first to do list</p>
234 <record model="ir.actions.act_window" id="topic_list_action">
235 <field name="name">List of topics</field>
236 <field name="res_model">todolist.topic</field>
237 <field name="view_mode">kanban,form</field>
238 <field name="help" type="html">
239 <p class="oe_view_nocontent_create">Créer your first topic</p>
244 <record model="ir.actions.act_window" id="task_list_action">
245 <field name="name">List of tasks</field>
246 <field name="res_model">todolist.task</field>
247 <field name="view_mode">kanban,form</field>
248 <field name="help" type="html">
249 <p class="oe_view_nocontent_create">Create your first task</p>
254 <menuitem id="main_minitools_menu" name="Mini Tools" />
256 <menuitem id="mt_todolist_menu" name="To do list" parent="main_minitools_menu" groups="group_todolist_user" />
258 <menuitem id="mt_todolist_container_menu" name="Lists" parent="mt_todolist_menu" action="todolist_list_action"/>
260 <menuitem id="mt_todolist_task_menu" name="Tasks" parent="mt_todolist_menu" action="task_list_action" />
262 <menuitem id="mt_settings_menu" name="Settings" parent="main_minitools_menu" groups="group_todolist_manager" />
264 <menuitem id="mt_todolist_topic_menu" name="Topics" parent="mt_settings_menu" action="topic_list_action" />