Skip to content
Snippets Groups Projects
Commit 441dab90 authored by Swapnesh Shah's avatar Swapnesh Shah Committed by GitHub
Browse files

[FIX] account: Set newly created template


Before this commit, Creating New Template from "Send Invoice" wizard doesn't update template_id on the Wizard.

In this commit, We write newly created template_id on the wizard.

closes odoo/odoo#44553

X-original-commit: 454e6ed9
Signed-off-by: default avatarLaurent Smet <smetl@users.noreply.github.com>
parent b1571b4b
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,7 @@ class AccountInvoiceSend(models.TransientModel):
def save_as_template(self):
self.ensure_one()
self.composer_id.save_as_template()
self.template_id = self.composer_id.template_id.id
action = _reopen(self, self.id, self.model, context=self._context)
action.update({'name': _('Send Invoice')})
return action
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment