-
-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] mail_notification_custom_subject: Migration to 15.0
TT36470
- Loading branch information
1 parent
bdfaa13
commit 3863865
Showing
8 changed files
with
72 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
* Pedro M. Baeza | ||
* João Marques | ||
* Carlos Roca | ||
* Víctor Martínez | ||
|
||
* Versada <https://versada.eu> | ||
* Naglis Jonaitis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 50 additions & 56 deletions
106
mail_notification_custom_subject/views/mail_notification_custom_subject_views.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<odoo> | ||
<data> | ||
<record model="ir.ui.view" id="mail_notification_custom_subject_form"> | ||
<field name="name">mail.message.custom.subject.form</field> | ||
<field name="model">mail.message.custom.subject</field> | ||
<field name="arch" type="xml"> | ||
<form string="Subject Replacement Templates"> | ||
<sheet> | ||
<div class="oe_title"> | ||
<label for="name" class="oe_edit_only" /> | ||
<h1 name="name"><field name="name" /></h1> | ||
</div> | ||
<group> | ||
<field | ||
name="subject_template" | ||
placeholder="Subject (placeholders may be used here)" | ||
/> | ||
<field name="model_id" options="{'no_create': True}" /> | ||
<field name="subtype_ids" widget="many2many_tags" /> | ||
<field name="position" /> | ||
</group> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
|
||
<record model="ir.ui.view" id="mail_notification_custom_subject_tree"> | ||
<field name="name">mail.message.custom.subject.tree</field> | ||
<field name="model">mail.message.custom.subject</field> | ||
<field name="arch" type="xml"> | ||
<tree> | ||
<field name="name" /> | ||
<field name="model_id" /> | ||
<field name="subtype_ids" /> | ||
<field name="subject_template" /> | ||
</tree> | ||
</field> | ||
</record> | ||
|
||
<record | ||
model="ir.actions.act_window" | ||
id="action_mail_notification_custom_subject_tree_all" | ||
> | ||
<field name="name">Subject Replacement Templates</field> | ||
<field name="res_model">mail.message.custom.subject</field> | ||
<field name="view_mode">form,tree</field> | ||
<field name="view_id" ref="mail_notification_custom_subject_tree" /> | ||
</record> | ||
|
||
<menuitem | ||
id="menu_mail_notification_custom_subject" | ||
parent="base.menu_email" | ||
action="action_mail_notification_custom_subject_tree_all" | ||
sequence="21" | ||
/> | ||
|
||
</data> | ||
<record model="ir.ui.view" id="mail_notification_custom_subject_form"> | ||
<field name="name">mail.message.custom.subject.form</field> | ||
<field name="model">mail.message.custom.subject</field> | ||
<field name="arch" type="xml"> | ||
<form string="Subject Replacement Templates"> | ||
<sheet> | ||
<div class="oe_title"> | ||
<label for="name" class="oe_edit_only" /> | ||
<h1 name="name"><field name="name" /></h1> | ||
</div> | ||
<group> | ||
<field | ||
name="subject_template" | ||
placeholder="Subject (placeholders may be used here)" | ||
/> | ||
<field name="model_id" options="{'no_create': True}" /> | ||
<field name="subtype_ids" widget="many2many_tags" /> | ||
<field name="position" /> | ||
</group> | ||
</sheet> | ||
</form> | ||
</field> | ||
</record> | ||
<record model="ir.ui.view" id="mail_notification_custom_subject_tree"> | ||
<field name="name">mail.message.custom.subject.tree</field> | ||
<field name="model">mail.message.custom.subject</field> | ||
<field name="arch" type="xml"> | ||
<tree> | ||
<field name="name" /> | ||
<field name="model_id" /> | ||
<field name="subtype_ids" /> | ||
<field name="subject_template" /> | ||
</tree> | ||
</field> | ||
</record> | ||
<record | ||
model="ir.actions.act_window" | ||
id="action_mail_notification_custom_subject_tree_all" | ||
> | ||
<field name="name">Subject Replacement Templates</field> | ||
<field name="res_model">mail.message.custom.subject</field> | ||
<field name="view_mode">form,tree</field> | ||
<field name="view_id" ref="mail_notification_custom_subject_tree" /> | ||
</record> | ||
<menuitem | ||
id="menu_mail_notification_custom_subject" | ||
parent="base.menu_email" | ||
action="action_mail_notification_custom_subject_tree_all" | ||
sequence="21" | ||
/> | ||
</odoo> |