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
Klaus Wölfel
erp5
Commits
ecee13f0
Commit
ecee13f0
authored
Feb 07, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mixin/variated: fix getVariationPropertyList accessor conflict
parent
2bc5d232
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
product/ERP5/mixin/variated.py
product/ERP5/mixin/variated.py
+13
-0
No files found.
product/ERP5/mixin/variated.py
View file @
ecee13f0
...
...
@@ -255,6 +255,19 @@ class VariatedMixin:
display_id
=
display_id
).
render
([
bc
]))
return
result
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getVariationPropertyList'
)
def
getVariationPropertyList
(
self
,
default
=
None
):
"""A list of properties which define variations
"""
# This method is defined explicitly to resolve an accessor conflict
# between category accessor getVariationPropertyList(property_name:str), the
# accessor getting the value of a property on the document related with
# variation property, defined by portal_property_sheets/VariationRange/variation_category
# and getVariationPropertyList(), the property accessor defined by
# portal_property_sheets/VariationRange/variation_property_property
return
self
.
_baseGetVariationPropertyList
(
default
=
default
)
# Methods for matrix UI widgets
# XXX FIXME Those method are depreciated.
# We now use _asCellRange scripts.
...
...
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