[IMP] crm*: update crm modules to new mail module (wip)
[odoo/odoo.git] / addons / crm / crm_lead_view.xml
index f11ecd8..1cc46a3 100644 (file)
                     <field name="message_ids" colspan="4" nolabel="1" mode="tree,form">
                         <tree string="History">
                             <field name="display_text" string="History Information"/>
-                            <field name="history" invisible="1"/>
                             <button
-                                string="Reply" attrs="{'invisible': [('history', '!=', True)]}"
+                                string="Reply" attrs="{'invisible': [('email_from', '=', False)]}"
                                 name="%(mail.action_email_compose_message_wizard)d"
                                 context="{'mail':'reply', 'message_id':active_id}"
                                 icon="terp-mail-replied" type="action" />
                         </tree>
-
                         <form string="History">
                             <group col="4" colspan="4">
                                 <field name="email_from"/>
                                 <field name="date"/>
                                 <field name="email_to" size="512"/>
                                 <field name="email_cc" size="512"/>
-                                <field name="subject" colspan="4" widget="char" attrs="{'invisible': [('history', '=', False)]}" size="512"/>
-                                <field name="display_text" colspan="4"   attrs="{'invisible': [('history', '=', True)]}"/>
-                                <field name="history" invisible="1"/>
+                                <field name="subject" colspan="4" widget="char" attrs="{'invisible': [('email_from', '=', False)]}" size="512"/>
+                                <field name="display_text" colspan="4" attrs="{'invisible': [('email_from', '!=', False)]}"/>
                             </group>
                             <notebook colspan="4">
                                 <page string="Details">
-                                    <field name="body" colspan="4" nolabel="1"/>
-                                    <group attrs="{'invisible': [('history', '!=', True)]}">
+                                    <field name="body_text" colspan="4" nolabel="1"/>
+                                    <group attrs="{'invisible': [('email_from', '=', False)]}">
                                         <button colspan="4" string="Reply"
                                             name="%(mail.action_email_compose_message_wizard)d"
                                             context="{'mail':'reply'}"