Commit d6b055df authored by Romain Courteaud's avatar Romain Courteaud

slapos_erp5: fixup

parent cea3b862
portal = context.getPortalObject()
# List of all portal types which contains some upgrade
for portal_type in ("Access Token Module" ,"Account Module" ,"Account" ,"Accounting Period" ,"Accounting Transaction Module" ,"Accounting Transaction" ,"Acknowledgement" ,"Assignment" ,"Balance Transaction" ,"Bank Account" ,"Compute Node", "Compute Partition", "Business Process Module" ,"Business Process" ,"Campaign Module" ,"Campaign" ,"Cash Register" ,"Cloud Contract Module" ,"Cloud Contract" ,"Component Module" ,"Component" ,"Computer Consumption TioXML File" ,"Computer Model Module" ,"Computer Model" ,"Compute Node Module" ,"Computer Network Module" ,"Computer Network" ,"Consumption Document Module" ,"Contribution Tool" ,"Credential Update Module" ,"Credit Card" ,"Currency Module" ,"Currency" ,"Data Set Module" ,"Data Set" ,"Document Ingestion Module" ,"Document Module" ,"Drawing" ,"Event Module" ,"Fax Message" ,"File" ,"Gadget Tool" ,"Gadget" ,"Instance Tree Module" ,"Instance Tree" ,"Image Module" ,"Image" ,"Integration Site" ,"Integration Tool" ,"Inventory Module" ,"Inventory" ,"Knowledge Box" ,"Knowledge Pad Module" ,"Knowledge Pad" ,"Letter" ,"Mail Message" ,"Meeting Module" ,"Meeting" ,"Note" ,"Notification Message Module" ,"Notification Message" ,"One Time Restricted Access Token" ,"Open Sale Order Module" ,"Open Sale Order" ,"Organisation Module" ,"Organisation" ,"PDF" ,"Payment Transaction" ,"Payzen Event" ,"Person Module" ,"Person" ,"Phone Call" ,"Presentation" ,"Product Module" ,"Product" ,"Project Module" ,"Project" ,"Purchase Invoice Transaction" ,"Purchase Order Module" ,"Purchase Order" ,"Purchase Trade Condition Module" ,"Purchase Trade Condition" ,"Query Module" ,"Query" ,"Regularisation Request Module" ,"Regularisation Request" ,"Restricted Access Token" ,"Sale Invoice Transaction" ,"Sale Opportunity Module" ,"Sale Opportunity" ,"Sale Order Module" ,"Sale Order" ,"Sale Packing List Module" ,"Sale Trade Condition Module" ,"Sale Trade Condition" ,"Service Module" ,"Service" ,"Short Message" ,"Site Message" ,"Slave Instance" ,"Software Installation Module" ,"Software Installation" ,"Software Instance Module" ,"Software Instance" ,"Software Product Module" ,"Software Product" ,"Software Release Module" ,"Software Release" ,"Spreadsheet" ,"Support Request Module" ,"Support Request" ,"System Event Module" ,"Text" ,"Transformation Module" ,"Transformation" ,"Upgrade Decision Module" ,"Upgrade Decision" ,"User Consumption HTML File" ,"Visit" ,"Web Message" ,"Web Page Module" ,"Web Page"):
print(portal_type)
portal.portal_types[portal_type].updateRoleMapping(priority=4)
return printed
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