[MERGE] forward port branch saas-12 up to 9dc383e
This commit is contained in:
@@ -885,6 +885,8 @@ class AccountMoveLine(models.Model):
|
||||
vals['date'] = self._context.get('date_p') or time.strftime('%Y-%m-%d')
|
||||
if 'name' not in vals:
|
||||
vals['name'] = self._context.get('comment') or _('Write-Off')
|
||||
if 'analytic_account_id' not in vals:
|
||||
vals['analytic_account_id'] = self.env.context.get('analytic_id', False)
|
||||
#compute the writeoff amount if not given
|
||||
if 'credit' not in vals and 'debit' not in vals:
|
||||
amount = sum([r.amount_residual for r in self])
|
||||
|
||||
@@ -1030,7 +1030,7 @@ class MailThread(models.AbstractModel):
|
||||
tools.decode_message_header(message, 'Cc'),
|
||||
tools.decode_message_header(message, 'Resent-To'),
|
||||
tools.decode_message_header(message, 'Resent-Cc')])
|
||||
rcpt_tos_localparts = [e.split('@')[0] for e in tools.email_split(rcpt_tos)]
|
||||
rcpt_tos_localparts = [e.split('@')[0].lower() for e in tools.email_split(rcpt_tos)]
|
||||
|
||||
# 0. Verify whether this is a bounced email and use it to collect bounce data and update notifications for customers
|
||||
if bounce_alias and bounce_alias in email_to_localpart:
|
||||
|
||||
Reference in New Issue
Block a user