Commit 6f22877e authored by Georgios Dagkakis's avatar Georgios Dagkakis

erp5_dms: Default content_type to 'application/pdf' and editor to 'pdf' for field

PDF_viewPDFJSPreview/my_data
Anyway, we are in PDF context, it can work even if content_type is not set
parent 7eb96ab7
......@@ -130,7 +130,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: field.getTemplateField().get_value("renderjs_extra") + [(\'password\', context.getTypeBasedMethod(\'getContentPassword\')())]</string> </value>
<value> <string>python: dict(dict(field.getTemplateField().get_value(\'renderjs_extra\')), content_type=\'application/pdf\', editor=\'pdf\', password=context.getTypeBasedMethod(\'getContentPassword\')())</string> </value>
</item>
</dictionary>
</pickle>
......
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