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.4 KiB

6 years ago
6 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="sql_export_mail_view_form" model="ir.ui.view">
  4. <field name="model">sql.export</field>
  5. <field name="inherit_id" ref="sql_export.sql_export_view_form" />
  6. <field name="arch" type="xml">
  7. <button name="export_sql_query" position="after">
  8. <button name="create_cron" string="Create Cron" type="object" groups="base.group_system"
  9. attrs="{'invisible': ['|', ('state', '=', 'draft'), ('mail_user_ids', '=', [(6, False, [])])]}"/>
  10. </button>
  11. <field name="copy_options" position="after">
  12. <field name="mail_condition" attrs="{'invisible': [('cron_ids', '=', [(6, False, [])])]}"/>
  13. </field>
  14. <group name="parameters" position="after">
  15. <group groups="sql_request_abstract.group_sql_request_user">
  16. <group string="Users Notified by e-mail">
  17. <field name="mail_user_ids" nolabel="1"/>
  18. </group>
  19. <group string="Crons" groups="base.group_system">
  20. <field name="cron_ids" nolabel="1" domain="[('function', '=', '_run_all_sql_export_for_cron')]" groups="base.group_system"/>
  21. </group>
  22. </group>
  23. </group>
  24. </field>
  25. </record>
  26. </odoo>