From 8c08d7be0b3bd805ef473b64d19612e1b18ed8e5 Mon Sep 17 00:00:00 2001 From: Dhwani Patel Date: Tue, 3 Mar 2020 10:56:00 +0000 Subject: [PATCH] [IMP] website_sale, stock: add email in additional address MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit improved various things into this commit: - added OPTIONAL email field on the new ship-to address for the eCommerce - if the email field is empty on the shipping address, it will send the confirmation email only to their parent task-2194014 Closes #47347 Signed-off-by: Jérémy Kersten (jke) --- addons/stock/data/mail_template_data.xml | 2 +- addons/website_sale/views/templates.xml | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/addons/stock/data/mail_template_data.xml b/addons/stock/data/mail_template_data.xml index 7d21e99c420..45f3939fed7 100644 --- a/addons/stock/data/mail_template_data.xml +++ b/addons/stock/data/mail_template_data.xml @@ -4,7 +4,7 @@ Delivery: Send by Email ${object.company_id.name} Delivery Order (Ref ${object.name or 'n/a' }) - ${object.partner_id.id} + ${object.partner_id.email and object.partner_id.id or object.partner_id.parent_id.id}

diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 80317d0701e..9870fd04417 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -1356,12 +1356,10 @@

- -
- - -
-
+
+ + +