diff --git a/addons/website_sale/models/sale_order.py b/addons/website_sale/models/sale_order.py
index 216eb209c944503320974f99f96ea3eb6ed3a6d3..0902fe5567f32a109ede26914a8d25a9d4e3881b 100644
--- a/addons/website_sale/models/sale_order.py
+++ b/addons/website_sale/models/sale_order.py
@@ -316,7 +316,8 @@ class SaleOrder(models.Model):
         try:
             default_template = self.env.ref('website_sale.mail_template_sale_cart_recovery', raise_if_not_found=False)
             default_template_id = default_template.id if default_template else False
-            template_id = self.website_id and self.website_id.cart_recovery_mail_template_id.id or default_template_id
+            template_id = (self.filtered('website_id') == self and
+                           self.mapped('website_id')[-1:1].cart_recovery_mail_template_id.id) or default_template_id
         except:
             template_id = False
         return {