Commit 74da77d9 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_advanced_ecommerce: adjust shop user role

parent 630579ff
<?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>
......@@ -20,6 +20,7 @@ assignment.open()
person.validate()
person.manage_setLocalRoles(user_id, ['Auditor'])
person.edit(career_role_list=['client/shop'])
person.WebSite_immediateReindex()
login.WebSite_immediateReindex()
......
......@@ -53,6 +53,7 @@ person.manage_setLocalRoles(user_id, ['Auditor'])
person.WebSite_immediateReindex()
login.WebSite_immediateReindex()
kw['career_role_list'] = ['client/shop']
person.WebSite_executeMethodAsSuperUser('edit', **kw)
if vat_code:
......
portal_categories/role/client/shop
\ 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