mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Add an explanation why the old api is used
This commit is contained in:
@@ -145,6 +145,9 @@ class CreditCommunication(models.TransientModel):
|
||||
def _generate_emails(self):
|
||||
""" Generate email message using template related to level """
|
||||
email_message_obj = self.env['mail.mail']
|
||||
# Warning: still using the old-api on 'email.template' because
|
||||
# the method generate_email() does not follow the cr, uid, ids
|
||||
# convention and the new api wrapper can't translate the call
|
||||
email_template_obj = self.pool['email.template']
|
||||
att_obj = self.env['ir.attachment']
|
||||
emails = email_message_obj.browse()
|
||||
|
||||
Reference in New Issue
Block a user