File tree 2 files changed +7
-6
lines changed
src/design/plone/contenttypes/upgrades
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,9 @@ Changelog
4
4
6.3.5 (unreleased)
5
5
------------------
6
6
7
- - Nothing changed yet.
7
+ - Fix upgrade step; we can't update types due to customer customizations;
8
+ we need to fix single parts of type profiles
9
+ [lucabel]
8
10
9
11
10
12
6.3.4 (2025-03-07)
Original file line number Diff line number Diff line change @@ -26,10 +26,6 @@ def update_registry(context):
26
26
update_profile (context , "plone.app.registry" , run_dependencies = False )
27
27
28
28
29
- def update_types (context ):
30
- update_profile (context , "typeinfo" )
31
-
32
-
33
29
def to_7301 (context ):
34
30
brains = api .content .find (portal_type = "Persona" )
35
31
for brain in brains :
@@ -186,5 +182,8 @@ def to_7310(context):
186
182
187
183
188
184
def to_7311 (context ):
189
- update_types (context )
185
+ allowed = list (context .portal_types ['Documento' ].allowed_content_types )
186
+ if "File" not in allowed :
187
+ allowed .append ("File" )
188
+ context .portal_types ['Documento' ].allowed_content_types = tuple (allowed )
190
189
logger .info ("Update ct documento addables" )
You can’t perform that action at this time.
0 commit comments