Commit b13c0108 authored by Jérome Perrin's avatar Jérome Perrin

`format` field for dialog should honor forced skin name.

Note that we use:
request.get('your_portal_skin', request.get('field_your_portal_skin', ...)
* your_portal_skin is for the
* field_your_portal_skin is for Base_callDialogMethod, which iterates on form.get_fields, which will not return the field unless it's enabled. Maybe Base_callDialogMethod should use form.get_fields(include_disabled=1)  ?

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18441 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 597ecd49
......@@ -295,7 +295,7 @@
<dictionary>
<item>
<key> <string>_text</string> </key>
<value> <string>python: preferences.getPreference(\'preferred_report_style\', \'Print\') in (\'ODS\', \'ODT\')</string> </value>
<value> <string>python: request.get(\'your_portal_skin\', request.get(\'field_your_portal_skin\', preferences.getPreference(\'preferred_report_style\', \'Print\'))) in (\'ODS\', \'ODT\')</string> </value>
</item>
</dictionary>
</pickle>
......
654
\ No newline at end of file
656
\ No newline at end of file
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