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.

61 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="view_changeset_field_rule_tree" model="ir.ui.view">
  4. <field name="name">changeset.field.rule.tree</field>
  5. <field name="model">changeset.field.rule</field>
  6. <field name="arch" type="xml">
  7. <tree string="Changeset Fields Rules">
  8. <field name="field_id"/>
  9. <field name="source_model_id"/>
  10. <field name="action"/>
  11. </tree>
  12. </field>
  13. </record>
  14. <record id="view_changeset_field_rule_form" model="ir.ui.view">
  15. <field name="name">changeset.field.rule.form</field>
  16. <field name="model">changeset.field.rule</field>
  17. <field name="arch" type="xml">
  18. <form string="Changeset Fields Rules">
  19. <sheet string="Changeset Fields Rules">
  20. <group>
  21. <field name="field_id"
  22. options="{'no_create_edit': True, 'no_open': True}"
  23. />
  24. <field name="action"/>
  25. <field name="source_model_id"
  26. widget="selection" />
  27. </group>
  28. </sheet>
  29. </form>
  30. </field>
  31. </record>
  32. <record id="view_changeset_field_rule_search" model="ir.ui.view">
  33. <field name="name">changeset.field.rule.search</field>
  34. <field name="model">changeset.field.rule</field>
  35. <field name="arch" type="xml">
  36. <search string="Changeset Fields Rules">
  37. <field name="field_id"/>
  38. <field name="source_model_id"/>
  39. <field name="action"/>
  40. </search>
  41. </field>
  42. </record>
  43. <record model="ir.actions.act_window" id="action_changeset_field_rule_view">
  44. <field name="name">Changeset Fields Rules</field>
  45. <field name="type">ir.actions.act_window</field>
  46. <field name="res_model">changeset.field.rule</field>
  47. <field name="view_type">form</field>
  48. <field name="view_mode">tree,form</field>
  49. <field name="search_view_id" ref="view_changeset_field_rule_search"/>
  50. </record>
  51. <menuitem id="menu_changeset_field_rule"
  52. parent="menu_changeset"
  53. name="Field Rules"
  54. groups="group_changeset_manager"
  55. sequence="20"
  56. action="action_changeset_field_rule_view"/>
  57. </odoo>