1 <?xml version="1.0" encoding="UTF-8"?>
6 <record model="ir.ui.view" id="todolist_form_view">
7 <field name="name">todolist.form</field>
8 <field name="model">todolist.todolist</field>
9 <field name="arch" type="xml">
10 <form string="Todolist Form" version="7.0">
12 <button string="Supprimer Description" type="object" name="vider_description" class="oe_highlight" />
13 <button string="Commencer" type="object" name="action_start" states="draft" class="oe_highlight" />
14 <button string="Terminer" type="object" name="action_stop" states="pending" class="oe_highlight" />
15 <button string="Recommencer" type="object" name="action_restart" states="pending,done" class="oe_highlight" />
16 <field name="state" widget="statusbar" />
19 <group colspan="4" col="3">
20 <label for="name" colspan="1" />
21 <field name="name" colspan="2" nolabel="1" />
22 <label for="description" colspan="1" />
23 <field name="description" colspan="2" nolabel="1" />
24 <label for="assigned" colspan="1" />
25 <field name="assigned" colspan="2" nolabel="1" />
27 <notebook colspan="4">
29 <group colspan="4" col="1">
30 <label for="date_cible" />
31 <field name="date_cible" nolabel="1" />
32 <label for="date_jalon" />
33 <field name="date_jalon" nolabel="1" />
36 <page string="Paramétrages">
37 <group colspan="4" col="1">
38 <field name="manday" />
39 <field name="valide" />
42 <page string="Actions">
43 <group colspan="4" col="1">
44 <field name="actions" nolabel="1" mode="tree">
45 <tree string="Actions" editable="1" colors="red:priority=='indispensable';
46 #FF5800:priority=='necessary';
47 black:priority=='utile'">
49 <field name="description"/>
50 <field name="deadline"/>
51 <field name="planned"/>
52 <field name="manday"/>
53 <field name="priority"/>
58 <page string="Thèmes">
59 <group colspan="4" col="1">
60 <field name="themes_id"/>
70 <record model="ir.ui.view" id="theme_form_view">
71 <field name="name">theme.form</field>
72 <field name="model">todolist.theme</field>
73 <field name="arch" type="xml">
74 <form string="Theme Form" version="7.0">
76 <group colspan="4" col="4">
77 <label for="name" colspan="3"/>
78 <label for="actif" colspan="1"/>
79 <field name="name" nolabel="1" colspan="3"/>
80 <field name="actif" nolabel="1" colspan="1"/>
83 <label for="description"/>
84 <field name="description" nolabel="1"/>
92 <record model="ir.ui.view" id="theme_kanban_view">
93 <field name="name">theme.kanban</field>
94 <field name="model">todolist.theme</field>
95 <field name="arch" type="xml">
96 <kanban default_group_by="actif">
98 <t t-name="kanban-box">
99 <div class="oe_kanban_card oe_semantic_html_override oe_kanban_global_click_edit">
100 <div class="oe_dropdown_kanban">
102 <div class="oe_dropdown_toggle">
103 <span class="oe_e">X</span>
104 <ul class="oe_dropdown_menu">
105 <li><a type="delete">Delete</a></li>
108 <div class="oe_clear" />
110 <div t-attf-class="oe_kanban_content">
111 <h1><field name="name" /></h1>
112 <field name="description" />
122 <record model="ir.ui.view" id="action_form_view">
123 <field name="name">todolist.form</field>
124 <field name="model">todolist.action</field>
125 <field name="arch" type="xml">
126 <form string="Todolist Form" version="7.0">
128 <button string="Brouillon" type="object" name="action_draft" states="proposal,valid,begin" class="oe_highlight" />
129 <button string="Proposition" type="object" name="action_propose" states="draft, valid, begin" class="oe_highlight" />
130 <button string="Validé" type="object" name="action_validate" states="draft,proposal" class="oe_highlight" />
131 <button string="Débute" type="object" name="action_begin" states="draft,valid" class="oe_highlight" />
132 <button string="Terminé" type="object" name="action_done" states="begin" class="oe_highlight" />
133 <field name="state" widget="statusbar" />
138 <field name="description" />
139 <field name="deadline" />
140 <field name="planned" />
141 <field name="manday" />
142 <field name="priority" />
143 <field name="todolist_id" />
151 <record model="ir.actions.act_window" id="todolist_list_action">
152 <field name="name">Todolists</field>
153 <field name="res_model">todolist.todolist</field>
154 <field name="view_mode">tree,form</field>
155 <field name="help" type="html">
156 <p class="oe_view_nocontent_create">Créer votre première todolist</p>
161 <record model="ir.actions.act_window" id="theme_list_action">
162 <field name="name">Liste des thèmes</field>
163 <field name="res_model">todolist.theme</field>
164 <field name="view_mode">kanban,tree,form</field>
165 <field name="help" type="html">
166 <p class="oe_view_nocontent_create">Créer votre premier thème</p>
171 <record model="ir.actions.act_window" id="action_list_action">
172 <field name="name">Liste des actions</field>
173 <field name="res_model">todolist.action</field>
174 <field name="view_mode">tree,form</field>
175 <field name="help" type="html">
176 <p class="oe_view_nocontent_create">Créer votre première action</p>
181 <menuitem id="main_todolist_menu" name="TODO List" />
183 <menuitem id="todolist_menu" name="TO DO List" parent="main_todolist_menu" groups="group_todolist_user" />
185 <menuitem id="todo_menu" name="TODO" parent="todolist_menu" action="todolist_list_action"/>
187 <menuitem id="todo_theme_menu" name="Themes" parent="todolist_menu" action="theme_list_action" />
189 <menuitem id="todo_action_menu" name="Actions" parent="todolist_menu" action="action_list_action" />