You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.3 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="act_analytic_invoices" model="ir.actions.act_window">
  5. <field name="name">Invoices</field>
  6. <field name="res_model">account.invoice</field>
  7. <field name="domain">[('invoice_line.account_analytic_id','=',active_id)]</field>
  8. <field name="view_id" ref="account.invoice_tree" />
  9. <field name="search_view_id" ref="account.view_account_invoice_filter" />
  10. </record>
  11. <record id="account_analytic_account_button_invoice" model="ir.ui.view">
  12. <field name="name">account.analytic.account.button.invoice
  13. </field>
  14. <field name="model">account.analytic.account</field>
  15. <field name="inherit_id" ref="analytic.view_account_analytic_account_form" />
  16. <field name="arch" type="xml">
  17. <xpath expr='//div[@name="buttons"]' position='inside'>
  18. <button class="oe_stat_button" type="action" icon="fa-edit"
  19. name="%(contract_show_invoice.act_analytic_invoices)d"
  20. string="Invoices" help="Invoices related with this contract">
  21. </button>
  22. </xpath>
  23. </field>
  24. </record>
  25. </data>
  26. </openerp>