hr_expense_sheet_views.xml 857 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="hr_expense_sheet_view_form" model="ir.ui.view">
  4. <field name="name">hr.expense.sheet.view.form.inherit.sale.expense</field>
  5. <field name="model">hr.expense.sheet</field>
  6. <field name="inherit_id" ref="hr_expense.view_hr_expense_sheet_form"/>
  7. <field name="arch" type="xml">
  8. <button name="action_get_expense_view" position="after">
  9. <button name="action_open_sale_orders"
  10. class="oe_stat_button"
  11. icon="fa-money"
  12. type="object"
  13. attrs="{'invisible': [('sale_order_count', '=', 0)]}">
  14. <field name="sale_order_count" widget="statinfo" string="Sales Orders"/>
  15. </button>
  16. </button>
  17. </field>
  18. </record>
  19. </odoo>