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.

55 lines
2.4 KiB

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. Copyright (C) 2020 - Today: GRAP (http://www.grap.coop)
  4. @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
  5. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  6. -->
  7. <odoo>
  8. <record id="view_ir_actions_server_form" model="ir.ui.view">
  9. <field name="model">ir.actions.server</field>
  10. <field name="inherit_id" ref="base.view_server_action_form" />
  11. <field name="arch" type="xml">
  12. <xpath expr="//page[@name='code']" position="after">
  13. <page
  14. string="Navigation Options"
  15. name='page_navigate'
  16. autofocus="autofocus"
  17. attrs="{'invisible': [('state', '!=', 'navigate')]}"
  18. >
  19. <group>
  20. <field name="max_navigate_line_sequence" invisible="1" />
  21. <field name="max_navigate_line_model" invisible="1" />
  22. <!-- we can check emptyness of a 2many like this since v10 i think /-->
  23. <button
  24. name="delete_last_line"
  25. string="Delete Last Line"
  26. type="object"
  27. attrs="{'invisible': [('navigate_line_ids', '=', [])]}"
  28. />
  29. <field
  30. name="navigate_line_ids"
  31. context="{'navigate_line_ids': navigate_line_ids}"
  32. nolabel="1"
  33. colspan="4"
  34. >
  35. <tree editable="bottom" delete="false">
  36. <!-- the handle widget takes care of the sequence /-->
  37. <field
  38. name="sequence"
  39. widget="handle"
  40. invisible="True"
  41. />
  42. <field name="field_id" />
  43. <field name="field_model" />
  44. </tree>
  45. </field>
  46. <field
  47. name="navigate_action_id"
  48. attrs="{'invisible': [('navigate_line_ids', '=', [])]}"
  49. />
  50. </group>
  51. </page>
  52. </xpath>
  53. </field>
  54. </record>
  55. </odoo>