[FIX] mail: bad indentation
The indentation leaded to UnboundLocalError: local variable 'attachement_values_list' referenced before assignment
This commit is contained in:
@@ -1691,7 +1691,7 @@ class MailThread(models.AbstractModel):
|
||||
cids_in_body.add(node.get('src').split('cid:')[1])
|
||||
elif node.get('data-filename'):
|
||||
names_in_body.add(node.get('data-filename'))
|
||||
attachement_values_list = []
|
||||
attachement_values_list = []
|
||||
|
||||
# generate values
|
||||
for attachment in attachments:
|
||||
|
||||
Reference in New Issue
Block a user