Commit 0f71e60e authored by Nicolas Wavrant's avatar Nicolas Wavrant

fixup! erp5_interface_post: action to export all exportable Letter Post in only one PDF document

parent 910544a4
......@@ -16,7 +16,7 @@ if person_value.getDefaultEmailText('') in ('', None):
context.activate(
tag=script.id,
).LetterPostModule_exportExportableLetterPostActivity(user.getUserId())
).LetterPostModule_exportExportableLetterPostActivity(user.getUserId(), comment)
return context.Base_redirect('view',
keep_items=dict(portal_status_message=N_("Report Started")))
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>**kw</string> </value>
<value> <string>comment, **kw</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
......@@ -12,7 +12,7 @@ for letter_post in letter_post_list:
else:
merged_pdf_content = portal.ERP5Site_mergePDFList([merged_pdf_content, letter_post.getData()])
letter_post.activate(activity='SQLQueue').export()
letter_post.activate(activity='SQLQueue').export(comment=comment)
result_pdf = portal.document_module.newContent(
portal_type='PDF',
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>user_name</string> </value>
<value> <string>user_name, comment</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment