Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Titouan Soulard
slapos.core
Commits
659d0e99
Commit
659d0e99
authored
Nov 14, 2022
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_pdm: support document without categories property
parent
f1ec0c8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5_slapos.SoftwareProduct.py
...portal_components/document.erp5_slapos.SoftwareProduct.py
+7
-1
No files found.
master/bt5/slapos_pdm/DocumentTemplateItem/portal_components/document.erp5_slapos.SoftwareProduct.py
View file @
659d0e99
...
...
@@ -66,7 +66,13 @@ class SoftwareProduct(ERP5SoftwareProduct):
)
def
__getattribute__
(
self
,
name
):
result
=
super
(
SoftwareProduct
,
self
).
__getattribute__
(
name
)
try
:
result
=
super
(
SoftwareProduct
,
self
).
__getattribute__
(
name
)
except
AttributeError
:
if
name
==
'categories'
:
result
=
[]
else
:
raise
if
name
==
'categories'
:
# Force getting default_category_list
...
...
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