diff --git a/product/ERP5Type/Accessor/Acquired.py b/product/ERP5Type/Accessor/Acquired.py index 5be81028cdc4c5d8eeb2b25ef2f3f4d8855ce3d9..e1531f588ac13c8267dc5b31db80bd72f7071de8 100644 --- a/product/ERP5Type/Accessor/Acquired.py +++ b/product/ERP5Type/Accessor/Acquired.py @@ -51,6 +51,7 @@ class DefaultGetter(Method): acquisition_sync_value, storage_id=None, alt_accessor_id = None, + acquisition_object_id=None, is_list_type = 0, is_tales_type = 0 ): @@ -70,6 +71,7 @@ class DefaultGetter(Method): storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key) self._storage_id = storage_id self._alt_accessor_id = alt_accessor_id + self._acquisition_object_id = acquisition_object_id self._is_list_type = is_list_type self._is_tales_type = is_tales_type @@ -95,6 +97,7 @@ class DefaultGetter(Method): sync_value=self._acquisition_sync_value, storage_id=self._storage_id, alt_accessor_id=self._alt_accessor_id, + acquisition_object_id=self._acquisition_object_id, is_list_type=is_list_type, is_tales_type=is_tales_type ) @@ -125,6 +128,7 @@ class ListGetter(Method): acquisition_sync_value, storage_id=None, alt_accessor_id = None, + acquisition_object_id=None, is_list_type = 0, is_tales_type = 0 ): @@ -144,6 +148,7 @@ class ListGetter(Method): storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key) self._storage_id = storage_id self._alt_accessor_id = alt_accessor_id + self._acquisition_object_id = acquisition_object_id self._is_list_type = is_list_type self._is_tales_type = is_tales_type @@ -160,6 +165,7 @@ class ListGetter(Method): else: is_list_type = self._is_list_type is_tales_type = self._is_tales_type + return instance._getAcquiredPropertyList(self._key, default, self._null, base_category=self._acquisition_base_category, portal_type=self._acquisition_portal_type, @@ -169,6 +175,7 @@ class ListGetter(Method): sync_value=self._acquisition_sync_value, storage_id=self._storage_id, alt_accessor_id=self._alt_accessor_id, + acquisition_object_id=self._acquisition_object_id, is_list_type=is_list_type, is_tales_type=is_tales_type ) diff --git a/product/ERP5Type/Accessor/AcquiredProperty.py b/product/ERP5Type/Accessor/AcquiredProperty.py index 61e1b0ba072c5f37f7d9612bdbeee6df6a8991d6..fca329d31fb1ca13a099d77a7c3fba73b01da768 100644 --- a/product/ERP5Type/Accessor/AcquiredProperty.py +++ b/product/ERP5Type/Accessor/AcquiredProperty.py @@ -54,6 +54,7 @@ class Getter(Method): acquisition_sync_value, storage_id=None, alt_accessor_id = None, + acquisition_object_id=None, is_list_type = 0, is_tales_type = 0 ): @@ -75,6 +76,7 @@ class Getter(Method): storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key) self._storage_id = storage_id self._alt_accessor_id = alt_accessor_id + self._acquisition_object_id = acquisition_object_id self._is_list_type = is_list_type self._is_tales_type = is_tales_type @@ -92,6 +94,7 @@ class Getter(Method): sync_value=self._acquisition_sync_value, storage_id=self._storage_id, alt_accessor_id=self._alt_accessor_id, + acquisition_object_id=self._acquisition_object_id, is_list_type=self._is_list_type, is_tales_type=self._is_tales_type, checked_permission=kw.get('checked_permission', None) @@ -128,6 +131,7 @@ class Setter(Method): acquisition_sync_value, storage_id=None, alt_accessor_id = None, + acquisition_object_id = None, is_list_type = 0, is_tales_type = 0, reindex = 0 @@ -150,6 +154,7 @@ class Setter(Method): storage_id = "%s%s" % (ATTRIBUTE_PREFIX, key) self._storage_id = storage_id self._alt_accessor_id = alt_accessor_id + self._acquisition_object_id = acquisition_object_id self._is_list_type = is_list_type self._is_tales_type = is_tales_type self._reindex = reindex