From: Alicia FLOREZ Date: Thu, 21 Mar 2013 15:59:39 +0000 (+0100) Subject: Ajout vue KANBAN pour taches et listes + suppression des vue tree X-Git-Url: http://git.inspyration.org/?a=commitdiff_plain;h=be8b93db6867852c3173a56ed1240f6905f32644;p=OpenERP%2Ftodolist.git Ajout vue KANBAN pour taches et listes + suppression des vue tree --- diff --git a/todolist.py b/todolist.py index a555d79..cc15f7f 100644 --- a/todolist.py +++ b/todolist.py @@ -106,7 +106,7 @@ class Task(osv.Model): _name = "todolist.task" - _priorities = [("useful", "Useful"), ("necessary", "Necessary"), ("essential", "Essential")] + _priorities = [("Useful", "Useful"), ("Necessary", "Necessary"), ("Essential", "Essential")] _states = [("draft", "Draft"), ("proposal", "Proposal"), ("approved", "Approved"), ("started", "Started"), ("done", "Done")] @@ -122,9 +122,12 @@ class Task(osv.Model): } _defaults = { - "state": "draft" + "state": "draft", + "priority": "useful" } + _order = "planned" + def action_draft(self, cr, uid, ids, context=None): self.write(cr, uid, ids, {"state": "draft"}, context=context) return self diff --git a/views/todolist.xml b/views/todolist.xml index be81254..6c8389a 100644 --- a/views/todolist.xml +++ b/views/todolist.xml @@ -4,7 +4,7 @@ - todolist.form + container.form todolist.container
@@ -65,6 +65,38 @@ + + container.kanban + todolist.container + + + + +
+
+ +
+ X + +
+
+
+ +
+

+ +
+ +
+ + + + + + + topic.form todolist.topic @@ -149,10 +181,42 @@ + + task.kanban + todolist.task + + + + +
+
+ +
+ X + +
+
+
+ +
+

+

+

Planned on

+
+ +
+ + + + + + list of to do lists todolist.container - tree,form + kanban,form

Create your first to do list

@@ -172,7 +236,7 @@ List of tasks todolist.task - tree,form + kanban,form

Create your first task