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.

63 lines
2.2 KiB

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