[FIX] ir.attachment mess, restore list view
authorAntony Lesuisse <lesuisse@gmail.com>
Thu, 29 May 2014 13:02:27 +0000 (15:02 +0200)
committerAntony Lesuisse <lesuisse@gmail.com>
Thu, 29 May 2014 13:02:27 +0000 (15:02 +0200)
addons/mail/mail_message_view.xml
openerp/addons/base/ir/ir_attachment_view.xml

index 1c4a7f5..81b47db 100644 (file)
             </field>
         </record>
         <record id="base.action_attachment" model="ir.actions.act_window">
-            <field name="view_mode">kanban,form</field>
+            <field name="view_mode">kanban,list,form</field>
         </record>
 
 
index 02ccfe7..c203fe0 100644 (file)
@@ -45,7 +45,9 @@
                 <tree string="Attachments">
                     <field name="name"/>
                     <field name="datas_fname"/>
-                    <field name="type" invisible="1"/>
+                    <field name="res_model"/>
+                    <field name="res_id"/>
+                    <field name="type"/>
                     <field name="company_id" groups="base.group_multi_company"/>
                     <field name="create_uid"/>
                     <field name="create_date"/>