[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:
@@ -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 """
|
||||
|
||||
Reference in New Issue
Block a user