mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Merge pull request #222 from andrius-preimantas/fix_credit_control_res_id
[FIX][account_credit_control] Do not link e-mails to Transient records
This commit is contained in:
@@ -195,7 +195,10 @@ class CreditCommunication(models.TransientModel):
|
||||
comm.id,
|
||||
context=context)
|
||||
email_values['type'] = 'email'
|
||||
|
||||
# model is Transient record (self) removed periodically so no point
|
||||
# of storing res_id
|
||||
email_values.pop('model', None)
|
||||
email_values.pop('res_id', None)
|
||||
email = email_message_obj.create(email_values)
|
||||
|
||||
state = 'sent'
|
||||
|
||||
Reference in New Issue
Block a user