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.

45 lines
2.2 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp><data>
<template id="assets_backend" name="custom bar assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/mail_move_message/static/src/css/mail_move_message.css"/>
<script type="text/javascript" src="/mail_move_message/static/src/js/mail_move_message.js"></script>
</xpath>
</template>
<record id="view_wizard" model="ir.ui.view">
<field name="name">mail_move_message.wizard.view</field>
<field name="model">mail_move_message.wizard</field>
<field name="arch" type="xml">
<form string="Move Message">
<field name="can_move" invisible="1"/>
<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>
<group attrs="{'invisible':[('can_move', '!=', False)]}">
<field name="message_moved_by_message_id" context="{'extended_name':1}"/>
<field name="message_moved_by_user_id"/>
<button name="open_moved_by_message_id" string="Open message" type="object" class="oe_highlight"/>
</group>
<group attrs="{'invisible':[('can_move', '=', False)]}">
<field name="parent_id" domain="[('parent_id','=', False)]" context="{'extended_name':1}" />
<field name="move_back" attrs="{'invisible':[('message_moved_by_user_id','=',False)]}"/>
<field name="model_id" class="oe_inline" />
<field name="res_id" class="oe_inline" />
<field name="record_url" class="oe_inline" widget="url"/>
</group>
<separator string="Message"/>
<div style="height:200px;overflow-y:auto;">
<field name="message_id" invisible="1"/>
<field name="message_body"/>
</div>
<footer>
<button name="move" string="Move" type="object" class="oe_highlight" attrs="{'invisible':[('can_move', '=', False)]}"/>
<button string="Cancel" class="" special="cancel" />
</footer>
</form>
</field>
</record>
</data>
</openerp>