Commit 78bb0800 authored by Łukasz Nowak's avatar Łukasz Nowak

- enable preference only when disabled


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a192c8d6
...@@ -85,7 +85,8 @@ if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n ...@@ -85,7 +85,8 @@ if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n
ptool.manage_pasteObjects(cb)\n ptool.manage_pasteObjects(cb)\n
pref.edit(preferred_accounting_transaction_at_date=None)\n pref.edit(preferred_accounting_transaction_at_date=None)\n
pref.edit(preferred_accounting_transaction_from_date=None)\n pref.edit(preferred_accounting_transaction_from_date=None)\n
pref.enable()\n if pref.getPreferenceState() == \'disabled\':\n
pref.enable()\n
\n \n
# reset selections\n # reset selections\n
stool = context.getPortalObject().portal_selections\n stool = context.getPortalObject().portal_selections\n
......
129 130
\ No newline at end of file \ 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