mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 19:32:02 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -6,17 +6,17 @@
|
|||
<field name="model">sale.order</field>
|
||||
<field name="inherit_id" ref="sale.view_order_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<data>
|
||||
<xpath expr="//button[@name='action_view_invoice']" position="before">
|
||||
<button type="action"
|
||||
name="%(sale_expense.hr_expense_action_from_sale_order)d"
|
||||
class="oe_stat_button"
|
||||
icon="fa-money"
|
||||
attrs="{'invisible': [('expense_count', '=', 0)]}">
|
||||
<field name="expense_count" widget="statinfo" string="Expenses"/>
|
||||
</button>
|
||||
</xpath>
|
||||
</data>
|
||||
<button name="action_view_invoice" position="before">
|
||||
<button
|
||||
name="%(sale_expense.hr_expense_action_from_sale_order)d"
|
||||
type="action"
|
||||
class="oe_stat_button"
|
||||
icon="fa-money"
|
||||
invisible="expense_count == 0"
|
||||
>
|
||||
<field name="expense_count" widget="statinfo" string="Expenses"/>
|
||||
</button>
|
||||
</button>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue