Sur task, ajout du chatter
authorAlicia FLOREZ <alicflorez@gmail.com>
Tue, 26 Mar 2013 10:34:39 +0000 (11:34 +0100)
committerAlicia FLOREZ <alicflorez@gmail.com>
Tue, 26 Mar 2013 10:34:39 +0000 (11:34 +0100)
__openerp__.py
todolist.py
views/todolist.xml

index 5a575c1..43b9fab 100644 (file)
@@ -1,7 +1,7 @@
 {
     "name": "TodoList",
     "version": "1.0",
-    "depends": ["base"],
+    "depends": ["base", 'mail'],
     "author": "Alicia FLOREZ & Sébastien CHAZALLET",
     "category": "Tools",
     "description": """Permet de gérer une 'todo list' personnelle.""",
index e1be67c..1a50abe 100644 (file)
@@ -120,6 +120,8 @@ class Task(osv.Model):
 
     _name = "todolist.task"
 
+    _inherit = "mail.thread"
+
     _priorities = [("Useful", "Useful"), ("Necessary", "Necessary"), ("Essential", "Essential")]
 
     _states = [("draft", "Draft"), ("proposal", "Proposal"), ("approved", "Approved"), ("started", "Started"), ("done", "Done")]
index 6c8389a..c3cc430 100644 (file)
                             <field name="container_id" />
                         </group>
                     </sheet>
+                    <div class="oe_chatter">
+                        <field name="message_follower_ids" widget="mail_followers"/>
+                        <field name="message_ids" widget="mail_thread" options="{'thread_level': 1}"/>
+                    </div>
                  </form>
             </field>
         </record>