diff --git a/addons/repair/data/repair_data.xml b/addons/repair/data/repair_data.xml index 4b62c7aacb9..136a20d0c82 100644 --- a/addons/repair/data/repair_data.xml +++ b/addons/repair/data/repair_data.xml @@ -1,31 +1,35 @@ - - - Repair Quotation - Send by Email - ${(object.create_uid.email and '%s <%s>' % (object.create_uid.name, object.create_uid.email) or '')|safe} - ${object.partner_id.name} Repair Orders (Ref ${object.name or 'n/a' }) - ${object.partner_id.id} + Repair Quotation: Send by email + ${object.partner_id.name} Repair Orders (Ref ${object.name or 'n/a' }) + ${(object.create_uid.email and '%s <%s>' % (object.create_uid.name, object.create_uid.email) or '')|safe} + ${object.partner_id.id} + +
+

+ Hello ${object.partner_id.name},
+ Here is your repair order ${doc_name} ${object.name} + % if object.origin: + (with reference: ${object.origin} ) + % endif + % if object.invoice_method != 'none': + amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)}.
+ % else: + .
+ % endif + You can reply to this email if you have any questions. +

+ Thank you, +

+
${(object.name or '').replace('/','_')} ${object.partner_id.lang} - -

Dear ${object.partner_id.name}

-

- Here is your repair order ${doc_name} ${object.name} - % if object.origin: - (with reference: ${object.origin} ) - % endif - % if object.invoice_method != 'none': - amounting in ${format_amount(object.amount_total, object.pricelist_id.currency_id)}. - % endif -

-

You can reply to this email if you have any questions.

-

Thank you,

-
+ +
diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py index 95581a5e990..b0f188fd920 100644 --- a/addons/repair/models/repair.py +++ b/addons/repair/models/repair.py @@ -256,7 +256,8 @@ class Repair(models.Model): 'default_res_id': self.id, 'default_use_template': bool(template_id), 'default_template_id': template_id, - 'default_composition_mode': 'comment' + 'default_composition_mode': 'comment', + 'custom_layout': 'mail.mail_notification_light', } return { 'type': 'ir.actions.act_window',