|
@ -1,64 +1,64 @@ |
|
|
<?xml version="1.0" encoding="utf-8" ?> |
|
|
<?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 |
|
|
|
|
|
|
|
|
<openerp> |
|
|
|
|
|
<data> |
|
|
|
|
|
<template |
|
|
|
|
|
id="assets_backend" |
|
|
|
|
|
name="custom bar assets" |
|
|
|
|
|
inherit_id="web.assets_backend" |
|
|
|
|
|
> |
|
|
|
|
|
<xpath expr="." position="inside"> |
|
|
|
|
|
<link |
|
|
rel="stylesheet" |
|
|
rel="stylesheet" |
|
|
href="/mail_move_message/static/src/css/mail_move_message.css" |
|
|
href="/mail_move_message/static/src/css/mail_move_message.css" |
|
|
/> |
|
|
/> |
|
|
<script |
|
|
|
|
|
|
|
|
<script |
|
|
type="text/javascript" |
|
|
type="text/javascript" |
|
|
src="/mail_move_message/static/src/js/mail_move_message.js" |
|
|
src="/mail_move_message/static/src/js/mail_move_message.js" |
|
|
/> |
|
|
/> |
|
|
</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" /> |
|
|
|
|
|
<field name="message_name_from" invisible="1" /> |
|
|
|
|
|
<field name="message_email_from" invisible="1" /> |
|
|
|
|
|
<field name="message_to_read" invisible="1" /> |
|
|
|
|
|
<field name="uid" invisible="1" /> |
|
|
|
|
|
|
|
|
|
|
|
<p |
|
|
|
|
|
|
|
|
</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" /> |
|
|
|
|
|
<field name="message_name_from" invisible="1" /> |
|
|
|
|
|
<field name="message_email_from" invisible="1" /> |
|
|
|
|
|
<field name="message_to_read" invisible="1" /> |
|
|
|
|
|
<field name="uid" invisible="1" /> |
|
|
|
|
|
<p |
|
|
attrs="{'invisible':[('can_move', '!=', False)]}" |
|
|
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> |
|
|
>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 |
|
|
|
|
|
|
|
|
<group attrs="{'invisible':[('can_move', '!=', False)]}"> |
|
|
|
|
|
<field |
|
|
name="message_moved_by_message_id" |
|
|
name="message_moved_by_message_id" |
|
|
context="{'extended_name':1}" |
|
|
context="{'extended_name':1}" |
|
|
/> |
|
|
/> |
|
|
<field name="message_moved_by_user_id" /> |
|
|
|
|
|
<button |
|
|
|
|
|
|
|
|
<field name="message_moved_by_user_id" /> |
|
|
|
|
|
<button |
|
|
name="open_moved_by_message_id" |
|
|
name="open_moved_by_message_id" |
|
|
string="Open message" |
|
|
string="Open message" |
|
|
type="object" |
|
|
type="object" |
|
|
class="oe_highlight" |
|
|
class="oe_highlight" |
|
|
/> |
|
|
/> |
|
|
</group> |
|
|
|
|
|
|
|
|
|
|
|
<group attrs="{'invisible':[('can_move', '=', False)]}" colspan="2"> |
|
|
|
|
|
<label for="model" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field |
|
|
|
|
|
|
|
|
</group> |
|
|
|
|
|
<group attrs="{'invisible':[('can_move', '=', False)]}" colspan="2"> |
|
|
|
|
|
<label for="model" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field |
|
|
name="model" |
|
|
name="model" |
|
|
widget="polymorphic" |
|
|
widget="polymorphic" |
|
|
polymorphic="res_id" |
|
|
polymorphic="res_id" |
|
|
class="oe_inline" |
|
|
class="oe_inline" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
|
|
|
<label for="filter_by_partner" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field name="filter_by_partner" class="oe_inline" /> |
|
|
|
|
|
<field name="partner_id" class="oe_inline" /> |
|
|
|
|
|
<button |
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<label for="filter_by_partner" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field name="filter_by_partner" class="oe_inline" /> |
|
|
|
|
|
<field name="partner_id" class="oe_inline" /> |
|
|
|
|
|
<button |
|
|
string="Create Partner" |
|
|
string="Create Partner" |
|
|
attrs="{'invisible':[('partner_id','!=',False)]}" |
|
|
attrs="{'invisible':[('partner_id','!=',False)]}" |
|
|
class="oe_highlight oe_inline ml32" |
|
|
class="oe_highlight oe_inline ml32" |
|
@ -66,17 +66,17 @@ |
|
|
field="partner_id" |
|
|
field="partner_id" |
|
|
context="{'force_email':True,'default_email':message_email_from,'default_name':message_name_from, 'update_message_author':True}" |
|
|
context="{'force_email':True,'default_email':message_email_from,'default_name':message_name_from, 'update_message_author':True}" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
|
|
|
<label for="res_id" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field |
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<label for="res_id" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field |
|
|
name="res_id" |
|
|
name="res_id" |
|
|
context="{'extended_name_with_contact':1}" |
|
|
context="{'extended_name_with_contact':1}" |
|
|
widget="many2one" |
|
|
widget="many2one" |
|
|
attrs="{'readonly': [('model','=',False)]}" |
|
|
attrs="{'readonly': [('model','=',False)]}" |
|
|
class="oe_inline" |
|
|
class="oe_inline" |
|
|
/> |
|
|
/> |
|
|
<button |
|
|
|
|
|
|
|
|
<button |
|
|
string="Create new record" |
|
|
string="Create new record" |
|
|
name="create_record" |
|
|
name="create_record" |
|
|
type="object" |
|
|
type="object" |
|
@ -86,46 +86,46 @@ |
|
|
field="res_id" |
|
|
field="res_id" |
|
|
use_for_mail_move_message="True" |
|
|
use_for_mail_move_message="True" |
|
|
/> |
|
|
/> |
|
|
</div> |
|
|
|
|
|
<label |
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
<label |
|
|
for="move_back" |
|
|
for="move_back" |
|
|
attrs="{'invisible':[('message_is_moved','=',False)]}" |
|
|
attrs="{'invisible':[('message_is_moved','=',False)]}" |
|
|
/> |
|
|
/> |
|
|
<div attrs="{'invisible':[('message_is_moved','=',False)]}"> |
|
|
|
|
|
<field name="move_back" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<label for="move_followers" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field name="move_followers" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</group> |
|
|
|
|
|
<button |
|
|
|
|
|
|
|
|
<div attrs="{'invisible':[('message_is_moved','=',False)]}"> |
|
|
|
|
|
<field name="move_back" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
<label for="move_followers" /> |
|
|
|
|
|
<div> |
|
|
|
|
|
<field name="move_followers" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</group> |
|
|
|
|
|
<button |
|
|
name="move" |
|
|
name="move" |
|
|
string="Move" |
|
|
string="Move" |
|
|
type="object" |
|
|
type="object" |
|
|
class="oe_highlight" |
|
|
class="oe_highlight" |
|
|
attrs="{'invisible':[('can_move', '=', False)]}" |
|
|
attrs="{'invisible':[('can_move', '=', False)]}" |
|
|
/> |
|
|
/> |
|
|
<button string="Close" class="" special="cancel" /> |
|
|
|
|
|
<separator string="Message" /> |
|
|
|
|
|
<group> |
|
|
|
|
|
<field name="message_subject" /> |
|
|
|
|
|
<field name="message_from" /> |
|
|
|
|
|
<field name="message_id" invisible="1" /> |
|
|
|
|
|
</group> |
|
|
|
|
|
<div class="openerp mail_move_message"> |
|
|
|
|
|
<div class="oe_mail"> |
|
|
|
|
|
<div class="oe_msg"> |
|
|
|
|
|
<div class="oe_msg_content"> |
|
|
|
|
|
<div class="oe_msg_body"> |
|
|
|
|
|
<!-- use built-in css for messages --> |
|
|
|
|
|
<field name="message_body" /> |
|
|
|
|
|
|
|
|
<button string="Close" class="" special="cancel" /> |
|
|
|
|
|
<separator string="Message" /> |
|
|
|
|
|
<group> |
|
|
|
|
|
<field name="message_subject" /> |
|
|
|
|
|
<field name="message_from" /> |
|
|
|
|
|
<field name="message_id" invisible="1" /> |
|
|
|
|
|
</group> |
|
|
|
|
|
<div class="openerp mail_move_message"> |
|
|
|
|
|
<div class="oe_mail"> |
|
|
|
|
|
<div class="oe_msg"> |
|
|
|
|
|
<div class="oe_msg_content"> |
|
|
|
|
|
<div class="oe_msg_body"> |
|
|
|
|
|
<!-- use built-in css for messages --> |
|
|
|
|
|
<field name="message_body" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
<footer> |
|
|
|
|
|
|
|
|
<footer> |
|
|
<button |
|
|
<button |
|
|
name="read_close" |
|
|
name="read_close" |
|
|
string="Mark as read and Close" |
|
|
string="Mark as read and Close" |
|
@ -144,10 +144,9 @@ |
|
|
attrs="{'invisible':[('uid','!=',1)]}" |
|
|
attrs="{'invisible':[('uid','!=',1)]}" |
|
|
/> |
|
|
/> |
|
|
</footer> |
|
|
</footer> |
|
|
</form> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</form> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
<!-- Relocation config wizard --> |
|
|
<!-- Relocation config wizard --> |
|
|
<record id="view_mail_move_message_config_settings" model="ir.ui.view"> |
|
|
<record id="view_mail_move_message_config_settings" model="ir.ui.view"> |
|
|
<field name="name">relocation settings</field> |
|
|
<field name="name">relocation settings</field> |
|
@ -179,7 +178,6 @@ |
|
|
</form> |
|
|
</form> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="action_mail_move_message_config" model="ir.actions.act_window"> |
|
|
<record id="action_mail_move_message_config" model="ir.actions.act_window"> |
|
|
<field name="name">Mail Relocation</field> |
|
|
<field name="name">Mail Relocation</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
|
<field name="type">ir.actions.act_window</field> |
|
@ -188,7 +186,6 @@ |
|
|
<field name="view_mode">form</field> |
|
|
<field name="view_mode">form</field> |
|
|
<field name="target">inline</field> |
|
|
<field name="target">inline</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<!-- Add menu entry in Settings/Email --> |
|
|
<!-- Add menu entry in Settings/Email --> |
|
|
<menuitem |
|
|
<menuitem |
|
|
name="Mail Relocation" |
|
|
name="Mail Relocation" |
|
@ -197,6 +194,5 @@ |
|
|
sequence="99" |
|
|
sequence="99" |
|
|
action="action_mail_move_message_config" |
|
|
action="action_mail_move_message_config" |
|
|
/> |
|
|
/> |
|
|
|
|
|
|
|
|
</data> |
|
|
</data> |
|
|
</openerp> |
|
|
</openerp> |