| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<record id="sale_order_form_view_inherit" model="ir.ui.view"> |
| 5 |
<field name="name">sale.order.form.inherit.sale.expense</field> |
| 6 |
<field name="model">sale.order</field> |
| 7 |
<field name="inherit_id" ref="sale.view_order_form"/> |
| 8 |
<field name="arch" type="xml"> |
| 9 |
<button name="action_view_invoice" position="before"> |
| 10 |
<button |
| 11 |
name="%(sale_expense.hr_expense_action_from_sale_order)d" |
| 12 |
type="action" |
| 13 |
class="oe_stat_button" |
| 14 |
icon="fa-money" |
| 15 |
invisible="expense_count == 0" |
| 16 |
> |
| 17 |
<field name="expense_count" widget="statinfo" string="Expenses"/> |
| 18 |
</button> |
| 19 |
</button> |
| 20 |
</field> |
| 21 |
</record> |
| 22 |
|
| 23 |
</odoo> |