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.

46 lines
2.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp><data>
  3. <template id="assets_backend" name="custom bar assets" inherit_id="web.assets_backend">
  4. <xpath expr="." position="inside">
  5. <link rel="stylesheet" href="/mail_move_message/static/src/css/mail_move_message.css"/>
  6. <script type="text/javascript" src="/mail_move_message/static/src/js/mail_move_message.js"></script>
  7. </xpath>
  8. </template>
  9. <record id="view_wizard" model="ir.ui.view">
  10. <field name="name">mail_move_message.wizard.view</field>
  11. <field name="model">mail_move_message.wizard</field>
  12. <field name="arch" type="xml">
  13. <form string="Move Message">
  14. <field name="can_move" invisible="1"/>
  15. <p attrs="{'invisible':[('can_move', '!=', False)]}">You cannot move this message. It was already moved with a message bellow. Open one and apply changes there.</p>
  16. <group attrs="{'invisible':[('can_move', '!=', False)]}">
  17. <field name="message_moved_by_message_id" context="{'extended_name':1}"/>
  18. <field name="message_moved_by_user_id"/>
  19. <button name="open_moved_by_message_id" string="Open message" type="object" class="oe_highlight"/>
  20. </group>
  21. <group attrs="{'invisible':[('can_move', '=', False)]}">
  22. <field name="parent_id" domain="[('parent_id','=', False)]" context="{'extended_name':1}" />
  23. <field name="move_back" attrs="{'invisible':[('message_moved_by_message_id','=',False)]}"/>
  24. <field name="model_id" class="oe_inline" />
  25. <field name="res_id" class="oe_inline" />
  26. <field name="record_url" class="oe_inline" widget="url"/>
  27. </group>
  28. <separator string="Message"/>
  29. <div style="height:200px;overflow-y:auto;">
  30. <field name="message_id" invisible="1"/>
  31. <field name="message_body"/>
  32. </div>
  33. <footer>
  34. <button name="move" string="Move" type="object" class="oe_highlight" attrs="{'invisible':[('can_move', '=', False)]}"/>
  35. <button string="Cancel" class="" special="cancel" />
  36. </footer>
  37. </form>
  38. </field>
  39. </record>
  40. </data>
  41. </openerp>