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.

58 lines
2.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="0">
  4. <record id="view_revision_behavior_tree" model="ir.ui.view">
  5. <field name="name">revision.behavior.tree</field>
  6. <field name="model">revision.behavior</field>
  7. <field name="arch" type="xml">
  8. <tree string="Revision Behavior">
  9. <field name="model_id"/>
  10. <field name="field_id"/>
  11. <field name="default_behavior"/>
  12. </tree>
  13. </field>
  14. </record>
  15. <record id="view_revision_behavior_form" model="ir.ui.view">
  16. <field name="name">revision.behavior.form</field>
  17. <field name="model">revision.behavior</field>
  18. <field name="arch" type="xml">
  19. <form string="Revision Behavior">
  20. <sheet string="Revision Behavior">
  21. <group>
  22. <field name="model_id" invisible="1"/>
  23. <field name="field_id" domain="[('model_id', '=', model_id)]"/>
  24. <field name="default_behavior"/>
  25. </group>
  26. </sheet>
  27. </form>
  28. </field>
  29. </record>
  30. <record id="view_revision_behavior_search" model="ir.ui.view">
  31. <field name="name">revision.behavior.search</field>
  32. <field name="model">revision.behavior</field>
  33. <field name="arch" type="xml">
  34. <search string="Revision Behavior">
  35. <field name="model_id"/>
  36. <field name="field_id"/>
  37. <field name="default_behavior"/>
  38. </search>
  39. </field>
  40. </record>
  41. <record model="ir.actions.act_window" id="action_revision_behavior_view">
  42. <field name="name">Revision Behavior</field>
  43. <field name="type">ir.actions.act_window</field>
  44. <field name="res_model">revision.behavior</field>
  45. <field name="view_type">form</field>
  46. <field name="view_mode">tree,form</field>
  47. <field name="search_view_id" ref="view_revision_behavior_search"/>
  48. </record>
  49. <menuitem id="menu_revision_behavior"
  50. parent="base.menu_base_config"
  51. sequence="20"
  52. action="action_revision_behavior_view"/>
  53. </data>
  54. </openerp>