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.

31 lines
1.4 KiB

  1. <?xml version="1.0"?>
  2. <openerp>
  3. <data>
  4. <record id="act_recurring_invoices" model="ir.actions.act_window">
  5. <field name="context">{'search_default_contract_id':
  6. [active_id],
  7. 'default_contract_id': active_id}
  8. </field>
  9. <field name="name">Invoices</field>
  10. <field name="res_model">account.invoice</field>
  11. <field name="view_id" ref="account.invoice_tree" />
  12. <field name="search_view_id" ref="account.view_account_invoice_filter" />
  13. </record>
  14. <record id="account_analytic_account_button_recurring_invoice"
  15. model="ir.ui.view">
  16. <field name="name">account.analytic.account.button.invoice
  17. </field>
  18. <field name="model">account.analytic.account</field>
  19. <field name="inherit_id" ref="account_analytic_analysis.account_analytic_account_form_form" />
  20. <field name="arch" type="xml">
  21. <button name="recurring_create_invoice" position="after">
  22. <button attrs="{'invisible': [('recurring_invoices','!=',True)]}"
  23. name="%(contract_show_recurring_invoice.act_recurring_invoices)d"
  24. string="⇒ show invoices" class="oe_link" type="action"/>
  25. </button>
  26. </field>
  27. </record>
  28. </data>
  29. </openerp>