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
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
Ekaterina
erp5
Commits
5574edac
Commit
5574edac
authored
Feb 07, 2018
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BusinessTemplate: Tolerate unset catalog properties.
parent
df34a816
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/Document/BusinessTemplate.py
product/ERP5/Document/BusinessTemplate.py
+2
-2
No files found.
product/ERP5/Document/BusinessTemplate.py
View file @
5574edac
...
@@ -2933,11 +2933,11 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
...
@@ -2933,11 +2933,11 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
# which end with '_list' which would've made no sense. So, we decided
# which end with '_list' which would've made no sense. So, we decided
# to move them to 'string' type
# to move them to 'string' type
if
prop
[
'type'
]
in
(
'string'
,
'selection'
)
and
\
if
prop
[
'type'
]
in
(
'string'
,
'selection'
)
and
\
getattr
(
catalog
,
prop_id
)
==
method_id
:
getattr
(
catalog
,
prop_id
,
None
)
==
method_id
:
method_properties
[
prop_id
]
=
1
method_properties
[
prop_id
]
=
1
elif
prop
[
'type'
]
==
'multiple selection'
and
\
elif
prop
[
'type'
]
==
'multiple selection'
and
\
method_id
in
getattr
(
catalog
,
prop_id
):
method_id
in
getattr
(
catalog
,
prop_id
,
()
):
method_properties
[
prop_id
]
=
1
method_properties
[
prop_id
]
=
1
return
method_properties
return
method_properties
...
...
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