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. <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"
  24. domain="[('model_id', '=', model_id),
  25. ('ttype', 'in', ('char', 'selection', 'date', 'datetime', 'float', 'integer', 'text', 'boolean', 'many2one')),
  26. ('readonly', '=', False)]"/>
  27. <field name="default_behavior"/>
  28. </group>
  29. </sheet>
  30. </form>
  31. </field>
  32. </record>
  33. <record id="view_revision_behavior_search" model="ir.ui.view">
  34. <field name="name">revision.behavior.search</field>
  35. <field name="model">revision.behavior</field>
  36. <field name="arch" type="xml">
  37. <search string="Revision Behavior">
  38. <field name="model_id"/>
  39. <field name="field_id"/>
  40. <field name="default_behavior"/>
  41. </search>
  42. </field>
  43. </record>
  44. <record model="ir.actions.act_window" id="action_revision_behavior_view">
  45. <field name="name">Revision Behavior</field>
  46. <field name="type">ir.actions.act_window</field>
  47. <field name="res_model">revision.behavior</field>
  48. <field name="view_type">form</field>
  49. <field name="view_mode">tree,form</field>
  50. <field name="search_view_id" ref="view_revision_behavior_search"/>
  51. </record>
  52. <menuitem id="menu_revision_behavior"
  53. parent="menu_revision"
  54. sequence="20"
  55. action="action_revision_behavior_view"/>
  56. </data>
  57. </openerp>