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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
74da77d9
Commit
74da77d9
authored
Oct 05, 2022
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_advanced_ecommerce: adjust shop user role
parent
630579ff
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
111 additions
and
0 deletions
+111
-0
bt5/erp5_advanced_ecommerce/PathTemplateItem/portal_categories/role/client/shop.xml
...e/PathTemplateItem/portal_categories/role/client/shop.xml
+108
-0
bt5/erp5_advanced_ecommerce/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce/ERP5Site_createFacebookUserToOAuth.py
..._advanced_ecommerce/ERP5Site_createFacebookUserToOAuth.py
+1
-0
bt5/erp5_advanced_ecommerce/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce/WebSite_createWebSiteAccount.py
...s/erp5_advanced_ecommerce/WebSite_createWebSiteAccount.py
+1
-0
bt5/erp5_advanced_ecommerce/bt/template_path_list
bt5/erp5_advanced_ecommerce/bt/template_path_list
+1
-0
No files found.
bt5/erp5_advanced_ecommerce/PathTemplateItem/portal_categories/role/client/shop.xml
0 → 100644
View file @
74da77d9
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Category"
module=
"erp5.portal_type"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_Add_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Add_portal_folders_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Copy_or_Move_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Delete_objects_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignor
</string>
<string>
Manager
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
_Modify_portal_content_Permission
</string>
</key>
<value>
<tuple>
<string>
Assignee
</string>
<string>
Assignor
</string>
<string>
Manager
</string>
<string>
Owner
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
codification
</string>
</key>
<value>
<string>
SHOP
</string>
</value>
</item>
<item>
<key>
<string>
default_reference
</string>
</key>
<value>
<string>
SHOP
</string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
effective_date
</string>
</key>
<value>
<object>
<klass>
<global
name=
"DateTime"
module=
"DateTime.DateTime"
/>
</klass>
<tuple>
<none/>
</tuple>
<state>
<tuple>
<float>
1252530000.0
</float>
<string>
GMT+3
</string>
</tuple>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
shop
</string>
</value>
</item>
<item>
<key>
<string>
portal_type
</string>
</key>
<value>
<string>
Category
</string>
</value>
</item>
<item>
<key>
<string>
short_title
</string>
</key>
<value>
<string>
Shop
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Shop
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_advanced_ecommerce/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce/ERP5Site_createFacebookUserToOAuth.py
View file @
74da77d9
...
@@ -20,6 +20,7 @@ assignment.open()
...
@@ -20,6 +20,7 @@ assignment.open()
person
.
validate
()
person
.
validate
()
person
.
manage_setLocalRoles
(
user_id
,
[
'Auditor'
])
person
.
manage_setLocalRoles
(
user_id
,
[
'Auditor'
])
person
.
edit
(
career_role_list
=
[
'client/shop'
])
person
.
WebSite_immediateReindex
()
person
.
WebSite_immediateReindex
()
login
.
WebSite_immediateReindex
()
login
.
WebSite_immediateReindex
()
...
...
bt5/erp5_advanced_ecommerce/SkinTemplateItem/portal_skins/erp5_advanced_ecommerce/WebSite_createWebSiteAccount.py
View file @
74da77d9
...
@@ -53,6 +53,7 @@ person.manage_setLocalRoles(user_id, ['Auditor'])
...
@@ -53,6 +53,7 @@ person.manage_setLocalRoles(user_id, ['Auditor'])
person
.
WebSite_immediateReindex
()
person
.
WebSite_immediateReindex
()
login
.
WebSite_immediateReindex
()
login
.
WebSite_immediateReindex
()
kw
[
'career_role_list'
]
=
[
'client/shop'
]
person
.
WebSite_executeMethodAsSuperUser
(
'edit'
,
**
kw
)
person
.
WebSite_executeMethodAsSuperUser
(
'edit'
,
**
kw
)
if
vat_code
:
if
vat_code
:
...
...
bt5/erp5_advanced_ecommerce/bt/template_path_list
0 → 100644
View file @
74da77d9
portal_categories/role/client/shop
\ No newline at end of file
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