diff --git a/rma/__manifest__.py b/rma/__manifest__.py index d0817e53..1b99d61e 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Return Merchandise Authorization Management", "summary": "Return Merchandise Authorization (RMA)", - "version": "15.0.1.0.0", + "version": "15.0.1.0.1", "development_status": "Production/Stable", "category": "RMA", "website": "https://github.com/OCA/rma", diff --git a/rma/migrations/15.0.1.0.0/noupdate_changes.xml b/rma/migrations/15.0.1.0.0/noupdate_changes.xml new file mode 100644 index 00000000..7937b11e --- /dev/null +++ b/rma/migrations/15.0.1.0.0/noupdate_changes.xml @@ -0,0 +1,99 @@ + + + + {{object.user_id.email_formatted}} + {{object.partner_id.id}} + {{object.company_id.name}} RMA (Ref {{object.name or 'n/a' }}) + {{(object.name or '')}} + {{object.partner_id.lang}} + +
+

+ Dear + + + + +
+
+ Here is the RMA + + + + from + + . +
+
+ Do not hesitate to contact us if you have any question. +

+
+
+
+ + {{object.user_id.email_formatted }} + {{object.partner_id.id}} + {{object.company_id.name}} RMA (Ref {{object.name or 'n/a' }}) products received + {{(object.name or '')}} + {{object.partner_id.lang}} + +
+

+ Dear + + + + +
+
+ The products for your RMA + + + + from + + have been received in our warehouse. +
+
+ Do not hesitate to contact us if you have any question. +

+
+
+
+ + {{object.user_id.email_formatted}} + {{object.partner_id.id}} + {{object.company_id.name}} Your RMA has been succesfully created (Ref {{object.name or 'n/a' }}) + {{(object.name or '')}} + {{object.partner_id.lang}} + +
+

+ Dear + + + + +
+
+ You've succesfully placed your RMA + + + + on + + . Our team will check it and will validate it as soon as possible. +
+
+ Do not hesitate to contact us if you have any question. +

+
+
+
+
diff --git a/rma/migrations/15.0.1.0.0/post-migration.py b/rma/migrations/15.0.1.0.0/post-migration.py new file mode 100644 index 00000000..d83f6aba --- /dev/null +++ b/rma/migrations/15.0.1.0.0/post-migration.py @@ -0,0 +1,18 @@ +# Copyright 2022 Tecnativa - Víctor Martínez +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openupgradelib import openupgrade + + +@openupgrade.migrate() +def migrate(env, version): + openupgrade.load_data(env.cr, "rma", "migrations/15.0.1.0.0/noupdate_changes.xml") + openupgrade.delete_record_translations( + env.cr, + "rma", + [ + "mail_template_rma_notification", + "mail_template_rma_receipt_notification", + "mail_template_rma_draft_notification", + ], + )