From 135921fd9fc66afe3b5dce2da2dbbcb82d8abd2c Mon Sep 17 00:00:00 2001 From: Ayush Tiwari <ayush.tiwari@nexedi.com> Date: Wed, 24 May 2017 12:21:08 +0000 Subject: [PATCH] bt5_config: Consider for property name which ends with list also --- product/ERP5/Document/BusinessManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5/Document/BusinessManager.py b/product/ERP5/Document/BusinessManager.py index 9404a9e940..ba1eac7cad 100644 --- a/product/ERP5/Document/BusinessManager.py +++ b/product/ERP5/Document/BusinessManager.py @@ -985,6 +985,8 @@ class BusinessPropertyItem(XMLObject): property_value = self.getProperty('item_property_value') # First remove the property from the existing path and keep the default # empty, and update only if the sign is +1 + if property_name.endswith('_list'): + property_name = property_name[:-5] obj._delPropValue(property_name) if int(self.getProperty('item_sign')) == 1: obj.setProperty(property_name, property_value, property_type) -- 2.30.9