Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Mukul
erp5
Commits
f62e6651
Commit
f62e6651
authored
May 12, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: use new .getActiveUserPreference to jump to preference user can edit
parent
fac26f62
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_jumpToActiveAccountingPreference.py
...tingTransactionModule_jumpToActiveAccountingPreference.py
+5
-4
bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/Base_getPreferencePathList.py
...al_skins/erp5_web_ung_theme/Base_getPreferencePathList.py
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/personalize_form.py
...inTemplateItem/portal_skins/erp5_core/personalize_form.py
+2
-2
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransactionModule_jumpToActiveAccountingPreference.py
View file @
f62e6651
request
=
context
.
REQUEST
return
request
.
RESPONSE
.
redirect
(
"%s/Preference_viewAccounting"
%
context
.
portal_preferences
.
getActivePreference
().
absolute_url
())
portal
=
context
.
getPortalObject
()
active_preference
=
portal
.
portal_preferences
.
getActiveUserPreference
()
if
not
active_preference
:
active_preference
=
portal
.
portal_preferences
.
getActivePreference
()
# vim: syntax=python
return
active_preference
.
Base_redirect
(
form_id
=
'Preference_viewAccounting'
)
bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/Base_getPreferencePathList.py
View file @
f62e6651
...
...
@@ -4,7 +4,7 @@ if context.portal_membership.isAnonymousUser():
return
dumps
(
None
)
portal_preferences
=
context
.
portal_preferences
preference
=
portal_preferences
.
getActivePreference
()
preference
=
portal_preferences
.
getActive
User
Preference
()
preference_dict
=
{}
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/personalize_form.py
View file @
f62e6651
...
...
@@ -2,9 +2,9 @@
preference_tool
=
context
.
getPortalObject
().
portal_preferences
preference
=
preference_tool
.
getActivePreference
()
preference
=
preference_tool
.
getActive
User
Preference
()
if
preference
is
not
None
and
preference
.
getPriority
()
==
3
:
# XXX: 3 is Priority.USER
if
preference
is
not
None
:
return
preference
.
Base_redirect
(
'view'
)
return
preference_tool
.
Base_redirect
(
'view'
)
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