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.
|
|
<?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"/> <field name="message_is_moved" 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)]}" colspan="2"> <label for="model"/> <div> <field name="model" widget="polymorphic" polymorphic="res_id" style="width:100%"/> </div> <label for="filter_by_partner"/> <div> <field name="filter_by_partner"/> <field name="partner_id" style="width:50%"/> <button name="create_partner" type="object" string="Create Partner" attrs="{'invisible':[('partner_id','!=',False)]}" class="oe_highlight"/> </div> <label for="res_id"/> <div> <field name="res_id" context="{'extended_name_with_contact':1}" widget="many2one" attrs="{'readonly': [('model','=',False)]}" style="width:50%"/> <field name="record_url" widget="url" class="oe_inline" text="Open in new tab"/> <button string="Create new record" name="create_record" type="object" class="oe_highlight" attrs="{'invisible':['|',('model','=',False),('res_id','!=',False)]}"/> </div> </group> <field name="move_back" attrs="{'invisible':[('message_is_moved','=',False)]}"/> <button name="move" string="Move" type="object" class="oe_highlight" attrs="{'invisible':[('can_move', '=', False)]}"/> <button string="Close" class="" special="cancel" /> <button name="read_close" string="Mark as read and Close" type="object" class="oe_highlight"/> <separator string="Message"/> <div> <field name="message_id" invisible="1"/> <field name="message_body"/> </div> <separator/> <button name="delete" string="Delete message" type="object" class="oe_highlight"/> </form> </field> </record>
<!-- Relocation config wizard --> <record id="view_mail_move_message_config_settings" model="ir.ui.view"> <field name="name">relocation settings</field> <field name="model">mail_move_message.config.settings</field> <field name="arch" type="xml"> <form string="Configure Mail Relocation" class="oe_form_configuration"> <header> <button string="Apply" type="object" name="execute" class="oe_highlight"/> or <button string="Cancel" type="object" name="cancel" class="oe_link"/> </header> <div name="general"> <separator string="Models"/> <field name="model_ids" widget="many2many_tags"/> </div> </form> </field> </record>
<record id="action_mail_move_message_config" model="ir.actions.act_window"> <field name="name">Mail Relocation</field> <field name="type">ir.actions.act_window</field> <field name="res_model">mail_move_message.config.settings</field> <field name="view_id" ref="view_mail_move_message_config_settings"/> <field name="view_mode">form</field> <field name="target">inline</field> </record>
<!-- Add menu entry in Settings/Email --> <menuitem name="Mail Relocation" id="menu_mail_move_message" parent="base.menu_email" sequence="99" action="action_mail_move_message_config"/>
</data> </openerp>
|