From ecee13f0f1ffc6f107dee7785423617dbed0b100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Mon, 7 Feb 2022 07:03:22 -0600 Subject: [PATCH] mixin/variated: fix getVariationPropertyList accessor conflict --- product/ERP5/mixin/variated.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/product/ERP5/mixin/variated.py b/product/ERP5/mixin/variated.py index b51cafac6c..4c9e6ed1f8 100644 --- a/product/ERP5/mixin/variated.py +++ b/product/ERP5/mixin/variated.py @@ -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. -- 2.30.9