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.

44 lines
1.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2017 LasLabs Inc.
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  5. -->
  6. <odoo>
  7. <record id="account_analytic_account_recurring_form_form" model="ir.ui.view">
  8. <field name="name">Contract Auto Pay</field>
  9. <field name="model">account.analytic.account</field>
  10. <field name="inherit_id" ref="contract.account_analytic_account_recurring_form_form"/>
  11. <field name="arch" type="xml">
  12. <xpath expr="//button[@name='contract.act_recurring_invoices']" position="after">
  13. <br attrs="{'invisible': [('recurring_invoices','!=',True)]}" />
  14. <field name="is_auto_pay"
  15. class="oe_inline"
  16. attrs="{'invisible': [('recurring_invoices','!=',True)]}"
  17. />
  18. <label for="is_auto_pay"
  19. attrs="{'invisible': [('recurring_invoices','!=',True)]}"
  20. />
  21. </xpath>
  22. <xpath expr="//label[@for='recurring_invoice_line_ids']" position="before">
  23. <group name="group_auto_pay"
  24. attrs="{'invisible': [('is_auto_pay', '=', False)]}"
  25. >
  26. <group>
  27. <field name="payment_token_id" />
  28. <field name="invoice_mail_template_id" />
  29. <field name="pay_retry_mail_template_id" />
  30. </group>
  31. <group>
  32. <field name="pay_fail_mail_template_id" />
  33. <field name="auto_pay_retries" />
  34. <field name="auto_pay_retry_hours" />
  35. </group>
  36. </group>
  37. </xpath>
  38. </field>
  39. </record>
  40. </odoo>