account_move_views.xml 926 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="view_move_form_inherit_expense" model="ir.ui.view">
  5. <field name="name">account.move.form.inherit</field>
  6. <field name="model">account.move</field>
  7. <field name="inherit_id" ref="account.view_move_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//div[@name='button_box']" position="inside">
  10. <field name="expense_sheet_id" invisible="1"/>
  11. <button name="action_open_expense_report"
  12. class="oe_stat_button"
  13. string="Expense Report"
  14. icon="fa-file-text-o"
  15. type="object"
  16. attrs="{'invisible': [('expense_sheet_id', '=', [])]}"/>
  17. </xpath>
  18. </field>
  19. </record>
  20. </data>
  21. </odoo>