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.

39 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="account_analytic_account_recurring_sale_form" model="ir.ui.view">
  4. <field name="name">account.analytic.account.invoice.recurring.sale.form</field>
  5. <field name="model">account.analytic.account</field>
  6. <field name="inherit_id" ref="contract.account_analytic_account_recurring_form_form"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='recurring_invoicing_type']" position="before">
  9. <field name="type"/>
  10. <field name="sale_autoconfirm" attrs="{'invisible':[('type','!=', 'sale')]}" />
  11. </xpath>
  12. <xpath expr="//button[@name='recurring_create_invoice']" position="attributes">
  13. <attribute name="attrs">{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','invoice')]}</attribute>
  14. </xpath>
  15. <xpath expr="//button[@name='recurring_create_invoice']" position="before">
  16. <button name="recurring_create_invoice"
  17. type="object"
  18. attrs="{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','sale')]}"
  19. string="Create sales"
  20. class="oe_link"
  21. groups="base.group_no_one"
  22. />
  23. </xpath>
  24. <xpath expr="//button[@name='contract.act_recurring_invoices']" position="attributes">
  25. <attribute name="attrs">{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','invoice')]}</attribute>
  26. </xpath>
  27. <xpath expr="//button[@name='contract.act_recurring_invoices']" position="before">
  28. <button name="contract_sale_generation.act_recurring_sales"
  29. type="action"
  30. attrs="{'invisible': ['|',('recurring_invoices','!=',True),('type','!=','sale')]}"
  31. string="⇒ Show recurring sales"
  32. class="oe_link"
  33. />
  34. </xpath>
  35. </field>
  36. </record>
  37. </odoo>