diff --git a/product/ERP5/Document/CategoryMovementGroup.py b/product/ERP5/Document/CategoryMovementGroup.py index 42c9d6710d47eae69981d001b4e652ad91c07bb0..443892528a7234a39cfe73b9ded8b3ee477e13e1 100644 --- a/product/ERP5/Document/CategoryMovementGroup.py +++ b/product/ERP5/Document/CategoryMovementGroup.py @@ -47,6 +47,8 @@ class CategoryMovementGroup(PropertyMovementGroup): return property_dict def test(self, document, property_dict, property_list=None, **kw): + if self.isForceUpdate(): + return True, property_dict if property_list not in (None, []): target_property_list = [x for x in self.getTestedPropertyList() \ if x in property_list] diff --git a/product/ERP5/Document/PropertyMovementGroup.py b/product/ERP5/Document/PropertyMovementGroup.py index c6e0a02f5a0d169f9aada9d4ff69677477bddbdf..7868fd73c60038311f55ab4617485034bfdb932d 100644 --- a/product/ERP5/Document/PropertyMovementGroup.py +++ b/product/ERP5/Document/PropertyMovementGroup.py @@ -46,6 +46,8 @@ class PropertyMovementGroup(MovementGroup): return property_dict def test(self, document, property_dict, property_list=None, **kw): + if self.isForceUpdate(): + return True, property_dict if property_list not in (None, []): target_property_list = [x for x in self.getTestedPropertyList() \ if x in property_list] diff --git a/product/ERP5/PropertySheet/MovementGroup.py b/product/ERP5/PropertySheet/MovementGroup.py index e0da776bd7fe0fe8592451d2722b588e3e92c3db..969b4377d3e591c6ac78b9cafc5fb2c2bb9d49fb 100644 --- a/product/ERP5/PropertySheet/MovementGroup.py +++ b/product/ERP5/PropertySheet/MovementGroup.py @@ -32,5 +32,9 @@ class MovementGroup: 'type' : 'lines', 'default' : (), 'mode' : 'w' }, + { 'id' : 'force_update', + 'description' : 'Update always if enabled', + 'type' : 'boolean', + 'mode' : 'w' }, ) _categories = ('collect_order_group', 'divergence_scope',)