| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo><data> |
| 3 |
<record id="purchase_order_inherited_form_sale" model="ir.ui.view"> |
| 4 |
<field name="name">purchase.order.inherited.form.sale</field> |
| 5 |
<field name="model">purchase.order</field> |
| 6 |
<field name="inherit_id" ref="purchase.purchase_order_form"/> |
| 7 |
<field name="arch" type="xml"> |
| 8 |
<xpath expr="//div[@name='button_box']" position="inside"> |
| 9 |
<button class="oe_stat_button" name="action_view_sale_orders" type="object" icon="fa-dollar" groups='sales_team.group_sale_salesman' invisible="sale_order_count == 0"> |
| 10 |
<div class="o_field_widget o_stat_info"> |
| 11 |
<span class="o_stat_value"><field name="sale_order_count"/></span> |
| 12 |
<span class="o_stat_text">Sale</span> |
| 13 |
</div> |
| 14 |
</button> |
| 15 |
</xpath> |
| 16 |
</field> |
| 17 |
</record> |
| 18 |
</data></odoo> |