[IMP] convert button into stat button for customer
[odoo/odoo.git] / addons / sale / res_partner_view.xml
index 5107f0c..049d2e4 100644 (file)
             <field name="priority" eval="20"/>
             <field name="arch" type="xml">
                 <xpath expr="//div[@name='buttons']" position="inside">
-                    <button name="%(sale.act_res_partner_2_sale_order)d" type="action"
-                        string="Quotations and Sales"
+                    <button class="oe_inline oe_stat_button" type="action" name="%(sale.act_res_partner_2_sale_order)d" 
                         attrs="{'invisible': [('customer', '=', False)]}"
-                        groups="base.group_sale_salesman"/>
+                        icon="fa-strikethrough" groups="base.group_sale_salesman">
+                        <field string="Quot. and Sales" name="sale_order_count" widget="statinfo"/>
+                    </button>     
                 </xpath>
             </field>
         </record>