[MERGE] forward port of branch saas-3 up to fe8106f
[odoo/odoo.git] / addons / crm / crm_phonecall_view.xml
index 176572b..619fc7c 100644 (file)
         <field name="name">CRM - Phone Call Form</field>
         <field name="model">crm.phonecall</field>
         <field name="arch" type="xml">
-            <form string="Phone Call" version="7.0">
+            <form string="Phone Call">
                 <header>
                     <field name="state" nolabel="1" widget="statusbar" clickable="True"/>
                 </header>
                 <sheet string="Phone Call">
-                    <div class="oe_right">
-                        <button string="Convert to Opportunity"
-                            type="object"
-                            name="action_button_convert2opportunity"
-                            attrs="{'invisible':[ '|', ('opportunity_id','!=',False), ('state', 'not in', ('open', 'done'))]}"/>
-                        <button string="Schedule Other Call"
-                                name="%(phonecall_to_phonecall_act)d"
-                                type="action"/>
-                        <button string="Schedule a Meeting" name="action_make_meeting" type="object"/>
+                    <div class="oe_right oe_button_box">
+                        <button class="oe_inline oe_stat_button" type="object" name="action_button_convert2opportunity" 
+                            icon="fa-star" attrs="{'invisible':[ '|', ('opportunity_id','!=',False), ('state', 'not in', ('open', 'done'))]}"
+                            help="Convert To Opportunity">
+                            <div>Convert To<br/>Opportunity</div>
+                        </button>
+
+                        <button class="oe_inline oe_stat_button" type="action" 
+                            name="%(phonecall_to_phonecall_act)d" icon="fa-phone">
+                            <div>Schedule<br/>Other Call</div>
+                        </button>
+                        <button class="oe_inline oe_stat_button" name="action_make_meeting" type="object" icon="fa-calendar fa-fw">
+                            <div>Schedule<br/>A Meeting</div>
+                        </button>
                     </div>
                     <div class="oe_title">
                         <div class="oe_edit_only">
                         <field name="categ_id" widget="selection"
                             domain="[('object_id.model', '=', 'crm.phonecall')]"/>
                         <field name="partner_mobile"/>
-                        <field name="priority"/>
+                        <field name="priority" widget="priority"/>
                         <field name="opportunity_id" on_change="on_change_opportunity(opportunity_id)" context="{'opportunity_id': opportunity_id}"/>
                     </group>
                     <field name="description" placeholder="Description..."/>
         <field name="model">crm.phonecall</field>
         <field name="arch" type="xml">
             <search string="Search Phonecalls">
-               <field name="name" string="Phonecalls"/>
-               <field name="date"/>
-               <field name="state"/>
-               <separator/>
-               <filter icon="terp-gtk-go-back-rtl" string="To Do" name="current" domain="[('state','=','open')]"/>
-               <separator/>
-               <filter string="Unassigned Phonecalls" icon="terp-personal-" domain="[('user_id','=',False)]" help="Unassigned Phonecalls"/>
-               <filter string="Unread Messages" name="message_unread" domain="[('message_unread','=',True)]"/>
-               <separator/>
-               <filter string="Phone Calls Assigned to Me or My Team(s)" icon="terp-personal+" domain="['|', ('section_id.user_id','=',uid), ('user_id', '=', uid)]"
-                       help="Phone Calls Assigned to the current user or with a team having the current user as team leader"/>
-               <field name="partner_id" operator="child_of"/>
-               <field name="user_id"/>
-               <field name="section_id" string="Sales Team"
+                <field name="name" string="Phonecalls"/>
+                <field name="date"/>
+                <field name="state"/>
+                <filter string="My Phonecalls" domain="[('user_id', '=', uid)]"/>
+                <filter string="My Team" domain="[('section_id.user_id', '=', uid)]"/>
+                <filter string="Unassigned" domain="[('user_id','=',False)]"/>
+                <separator/>
+                <filter string="To Do" name="current" domain="[('state','=','open')]"/>
+                <separator/>
+                <filter string="New Mail" name="message_unread" domain="[('message_unread','=',True)]"/>
+                <separator/>
+                <field name="partner_id" operator="child_of"/>
+                <field name="user_id"/>
+                <field name="opportunity_id"/>
+                <field name="section_id" string="Sales Team"
                         groups="base.group_multi_salesteams"/>
-               <group expand="0" string="Group By...">
-                   <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
-                   <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
-                   <filter string="Creation" icon="terp-go-month" help="Creation Date" domain="[]" context="{'group_by':'create_date'}"/>
-                   <filter string="Calls Month" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" help="Calls Date by Month"/>
-               </group>
-           </search>
+                <group expand="0" string="Group By">
+                    <filter string="Partner" domain="[]" context="{'group_by':'partner_id'}"/>
+                    <filter string="Responsible" domain="[]" context="{'group_by':'user_id'}"/>
+                    <filter string="Creation" help="Creation Date" domain="[]" context="{'group_by':'create_date'}"/>
+                    <filter string="Month" domain="[]" context="{'group_by':'date'}" help="Calls Date by Month"/>
+                </group>
+            </search>
         </field>
     </record>