Skip to content

Commit

Permalink
Fix check_template_report
Browse files Browse the repository at this point in the history
  • Loading branch information
a-orellana committed Aug 26, 2022
1 parent a96ac3f commit 67a983c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poweremail_send_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def save_to_mailbox(self, cr, uid, ids, context=None):
# Ensure report is rendered using template's language. If not found, user's launguage is used.
ctx = context.copy()
self.check_lang(cr, uid, template, src_rec_id, context=ctx)
attachment_id = self.check_template_report(
attachment_id = self.create_report_attachment(
cr, uid, template, vals, screen_vals, mail_id, report_record_ids, src_rec_id, context=ctx
)
if attachment_id:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_poweremail_mailbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def generate_mail_with_attachments_and_report_multi_users(self, mock_function):
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.add_template_attachments')
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.add_attachment_documents')
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.process_extra_attachment_in_template')
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.check_template_report')
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.create_report_attachment')
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.create_mail')
@mock.patch('poweremail.poweremail_send_wizard.poweremail_send_wizard.check_lang')
def test_save_to_mailbox(self, mock_function, mock_function_2, mock_function_3, mock_function_4, mock_function_5, mock_function_6):
Expand Down

0 comments on commit 67a983c

Please sign in to comment.