diff options
| author | Anh Thao Pham (pta) <pta@odoo.com> | 2020-10-08 13:42:31 +0000 |
|---|---|---|
| committer | Anh Thao Pham (pta) <pta@odoo.com> | 2020-10-09 11:29:40 +0000 |
| commit | 968e722da102c73dd42ab0c06b607c1e864c7da3 (patch) | |
| tree | 5ef8885cde41d1259f73fe8ea378ed917ab101d4 /addons/account/wizard | |
| parent | 81b39c18a889cf7bdd79cd8b77b9c7729c7a5d2b (diff) | |
[FIX] account: fix email onchange on invoice template
- Activate debug mode
- Go to Settings > Technical > Templates
- Duplicate "Invoice: Send by email" and edit the copy (Name & Content)
- Go to Accounting > Customers > Invoices and create an Invoice
- Post it
- Send & Print
- In the wizard, select the duplicated template (the content will be updated)
- Uncheck "Email" option, the re-check it
The selected template is still the duplicated one, but the content is the one from the default template.
opw-2345200
closes odoo/odoo#59620
X-original-commit: cd6c54b15ce328b58888a4f33a64ae61c7744a90
Signed-off-by: Anh Thao PHAM <kitan191@users.noreply.github.com>
Diffstat (limited to 'addons/account/wizard')
| -rw-r--r-- | addons/account/wizard/account_invoice_send.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/account/wizard/account_invoice_send.py b/addons/account/wizard/account_invoice_send.py index daf1ae3cfe0..7aff5d224c4 100644 --- a/addons/account/wizard/account_invoice_send.py +++ b/addons/account/wizard/account_invoice_send.py @@ -63,6 +63,8 @@ class AccountInvoiceSend(models.TransientModel): 'composition_mode': 'comment' if len(res_ids) == 1 else 'mass_mail', 'template_id': self.template_id.id }) + else: + self.composer_id.template_id = self.template_id.id self.composer_id.onchange_template_id_wrapper() @api.onchange('is_email') |
