[IMP] website_slides: remove unnecessary create override

An override of invite wizard exists to give a value to body and subject.
However as those are computed field (not required) this is not necessary.

Task-2709581

Part-of: odoo/odoo#80947
This commit is contained in:
Thibault Delavallée
2021-12-07 11:50:53 +00:00
parent a9d9a258e4
commit 4d4c66acc4
@@ -44,16 +44,6 @@ class SlideChannelInvite(models.TransientModel):
', '.join(invalid_partners.mapped('name'))
))
@api.model
def create(self, values):
if values.get('template_id') and not (values.get('body') or values.get('subject')):
template = self.env['mail.template'].browse(values['template_id'])
if not values.get('subject'):
values['subject'] = template.subject
if not values.get('body'):
values['body'] = template.body_html
return super(SlideChannelInvite, self).create(values)
def action_invite(self):
""" Process the wizard content and proceed with sending the related
email(s), rendering any template patterns on the fly if needed """