From 570d8ef2e946eb0e4925505eb141789d26dc3d88 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 31 May 2012 11:30:50 +0200 Subject: [PATCH] [FIX] write mulitple values of configurator (lp:c2c-addons/6.1 rev 61) --- stock_orderpoint_creator/base_product_config_template.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stock_orderpoint_creator/base_product_config_template.py b/stock_orderpoint_creator/base_product_config_template.py index ec11c7cf4..1f6cd9389 100644 --- a/stock_orderpoint_creator/base_product_config_template.py +++ b/stock_orderpoint_creator/base_product_config_template.py @@ -63,17 +63,18 @@ class BaseProductConfigTemplate(): product_ids = [product_ids] # data = self.copy_data(cursor, uid, template_br.id, context=context) - # copy data will not work in any case and may write erronus value + # copy data will not work in all case and may retrieve erronus value model_obj = self._get_model() data = {} + #May rais error on function fields in future for key in model_obj._columns.keys(): tmp = template_br[key] if isinstance(tmp, browse_record): tmp = tmp.id if isinstance(tmp, browse_record_list): - tmp = [0,6,tmp] + tmp = [(6, 0, tmp)] data[key] = tmp for product_id in product_ids: