diff options
| author | dut-odoo <dut@odoo.com> | 2016-10-21 18:29:59 +0530 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-11-03 11:49:28 +0100 |
| commit | 78b2aa4ce5972e27cbef902a6d8567ffe8253d61 (patch) | |
| tree | 23224d7ecb8bb4c0f82d0732ac0ae0db59220936 /addons/account/data/email_template_data_invoice.xml | |
| parent | 018144b8ac83e277e6add0e98de417bcaa7e613c (diff) | |
[IMP] account: show send by email button on invoice for pro-forma stage too
- when we send invoice by email, the template shows `False` at invoice number,
we will show `pro-forma` invoice instead of `False`
Diffstat (limited to 'addons/account/data/email_template_data_invoice.xml')
| -rw-r--r-- | addons/account/data/email_template_data_invoice.xml | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ (<i>${object.partner_id.parent_id.name}</i>) % endif ,</p> -<p>Here is your invoice <strong>${object.number}</strong> +<p>Here is your +% if object.number: +invoice <strong>${object.number}</strong> +% else: +pro-forma invoice +% endif % if object.origin: (with reference: ${object.origin} ) % endif |
