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