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.

34 lines
1.4 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_storage_backend_form" model="ir.ui.view">
  4. <field name="model">storage.backend</field>
  5. <field name="inherit_id" ref="storage_backend.storage_backend_view_form" />
  6. <field name="priority" eval="250"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//div[hasclass('oe_title')]" position="before">
  9. <div class="oe_button_box" name="button_box">
  10. <button
  11. class="oe_stat_button"
  12. type="object"
  13. attrs="{'invisible': [('import_task_count', '&lt;', 1)]}"
  14. name="action_related_import_task"
  15. icon="fa-download"
  16. >
  17. <field name="import_task_count" widget="statinfo" />
  18. </button>
  19. <button
  20. class="oe_stat_button"
  21. type="object"
  22. attrs="{'invisible': [('export_task_count', '&lt;', 1)]}"
  23. name="action_related_export_task"
  24. icon="fa-upload"
  25. >
  26. <field name="export_task_count" widget="statinfo" />
  27. </button>
  28. </div>
  29. </xpath>
  30. </field>
  31. </record>
  32. </odoo>