diff --git a/addons/account/data/email_template_data_invoice.xml b/addons/account/data/email_template_data_invoice.xml index 41731b7c527..68ddbfa230a 100644 --- a/addons/account/data/email_template_data_invoice.xml +++ b/addons/account/data/email_template_data_invoice.xml @@ -25,7 +25,12 @@ (${object.partner_id.parent_id.name}) % endif ,
-Here is your invoice ${object.number} +
Here is your
+% if object.number:
+invoice ${object.number}
+% else:
+pro-forma invoice
+% endif
% if object.origin:
(with reference: ${object.origin} )
% endif
diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml
index e1da859f9d0..40feb8caa75 100644
--- a/addons/account/views/account_invoice_view.xml
+++ b/addons/account/views/account_invoice_view.xml
@@ -347,9 +347,9 @@