document_page_show_diff_view.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Create Index Form view -->
  5. <record id="view_wiki_show_diff" model="ir.ui.view">
  6. <field name="name">Show Difference</field>
  7. <field name="model">blog.post.history.show_diff</field>
  8. <field name="arch" type="xml">
  9. <form string="Difference">
  10. <field name="diff" widget="html" options='{"safe": True}'/>
  11. <footer>
  12. <button string="Cancel" class="oe_link" special="cancel" />
  13. </footer>
  14. </form>
  15. </field>
  16. </record>
  17. <!-- Create Index Action -->
  18. <record id="action_view_wiki_show_diff" model="ir.actions.act_window">
  19. <field name="name">Difference</field>
  20. <field name="type">ir.actions.act_window</field>
  21. <field name="res_model">blog.post.history.show_diff</field>
  22. <field name="view_type">form</field>
  23. <field name="view_mode">form</field>
  24. <field name="target">new</field>
  25. </record>
  26. <!-- Create Index Action Window -->
  27. <act_window
  28. id="action_view_wiki_show_diff_values"
  29. key2="client_action_multi"
  30. name="Difference"
  31. res_model="blog.post.history.show_diff"
  32. src_model="blog.post.history"
  33. view_mode="form"
  34. target="new"
  35. view_type="form"/>
  36. </data>
  37. </openerp>