Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
erp5_rtl_support
Commits
ea8383ad
Commit
ea8383ad
authored
Apr 12, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
properly support cases where the user does not own the accounting zuite preference
parent
8bacc50c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
...l_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
+5
-3
No files found.
bt5/erp5_accounting_ui_test/SkinTemplateItem/portal_skins/erp5_accounting_ui_test/AccountingZuite_reset.xml
View file @
ea8383ad
...
@@ -73,14 +73,16 @@ for entity in ( portal.organisation_module.objectValues() +\n
...
@@ -73,14 +73,16 @@ for entity in ( portal.organisation_module.objectValues() +\n
# XXX\n
# XXX\n
\n
\n
# enable preference\n
# enable preference\n
pref = portal.portal_preferences.accounting_zuite_preference\n
ptool = portal.portal_preferences\n
pref = ptool.accounting_zuite_preference\n
if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n
if pref.owner_info()[\'id\'] != str(context.REQUEST.AUTHENTICATED_USER):\n
# we have to \'own\' the preference for the test\n
# we have to \'own\' the preference for the test\n
ptool = portal.portal_preferences\n
ptool = portal.portal_preferences\n
# pref.setId(\'old_accounting_zuite_preference\')\n
# pref.setId(\'old_accounting_zuite_preference\')\n
cb = ptool.manage_copyObjects([\'accounting_zuite_preference\'])\n
cb = ptool.manage_copyObjects([\'accounting_zuite_preference\'])\n
# FIXME: how could this work ???\n
pasted, = ptool.manage_pasteObjects(cb)\n
ptool.manage_pasteObjects(cb)\n
pref = ptool[pasted[\'new_id\']]\n
\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.edit(preferred_account_number_method=None)\n
pref.edit(preferred_account_number_method=None)\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment