|
|
@ -4,8 +4,11 @@ |
|
|
|
# Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr> |
|
|
|
# License MIT (https://opensource.org/licenses/MIT).--> |
|
|
|
<odoo> |
|
|
|
|
|
|
|
<template id="assets_backend" name="custom bar assets" inherit_id="web.assets_backend"> |
|
|
|
<template |
|
|
|
id="assets_backend" |
|
|
|
name="custom bar assets" |
|
|
|
inherit_id="web.assets_backend" |
|
|
|
> |
|
|
|
<xpath expr="." position="inside"> |
|
|
|
<link |
|
|
|
rel="stylesheet" |
|
|
@ -16,21 +19,18 @@ |
|
|
|
src="/mail_move_message/static/src/js/mail_move_message.js" |
|
|
|
/> |
|
|
|
</xpath> |
|
|
|
</template> |
|
|
|
|
|
|
|
<record id="view_wizard" model="ir.ui.view"> |
|
|
|
</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)]}" |
|
|
|
>You cannot move this message. It was already moved with a message bellow. Open one and apply changes there.</p> |
|
|
@ -47,7 +47,6 @@ |
|
|
|
class="oe_highlight" |
|
|
|
/> |
|
|
|
</group> |
|
|
|
|
|
|
|
<group attrs="{'invisible':[('can_move', '=', False)]}" colspan="2"> |
|
|
|
<label for="model_record" /> |
|
|
|
<div> |
|
|
@ -128,10 +127,9 @@ |
|
|
|
</footer> |
|
|
|
</form> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<!-- Relocation config wizard --> |
|
|
|
<record id="view_mail_move_message_config_settings" model="ir.ui.view"> |
|
|
|
</record> |
|
|
|
<!-- Relocation config wizard --> |
|
|
|
<record id="view_mail_move_message_config_settings" model="ir.ui.view"> |
|
|
|
<field name="name">res.config.settings.view.form.inherit</field> |
|
|
|
<field name="model">res.config.settings</field> |
|
|
|
<field name="priority" eval="55" /> |
|
|
@ -169,9 +167,8 @@ |
|
|
|
</div> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="action_mail_move_message_config" model="ir.actions.act_window"> |
|
|
|
</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">res.config.settings</field> |
|
|
@ -179,6 +176,5 @@ |
|
|
|
<field name="view_mode">form</field> |
|
|
|
<field name="target">inline</field> |
|
|
|
<field name="context">{'module' : 'mail_move_message'}</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
</record> |
|
|
|
</odoo> |