From c0c785612b10377d2acb7fd2f7f319f503c2d74f Mon Sep 17 00:00:00 2001
From: Yoshinori Okuji <yo@nexedi.com>
Date: Wed, 9 Jun 2004 14:32:00 +0000
Subject: [PATCH] Add force_update=1.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@979 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/OrderLine.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/Document/OrderLine.py b/product/ERP5/Document/OrderLine.py
index 669c9881ba..254d0777f0 100755
--- a/product/ERP5/Document/OrderLine.py
+++ b/product/ERP5/Document/OrderLine.py
@@ -39,7 +39,7 @@ from zLOG import LOG
 
 class OrderLine(DeliveryLine):
     """
-      Une ligne de commande définit également un prix
+      Une ligne de commande d?init ?alement un prix
       Un element de tarif est un prix pour un ensemble de conditions d'application...
     """
 
@@ -144,19 +144,20 @@ Une ligne tarifaire."""
       kwd = {'base_id': base_id}
       new_range = self.DeliveryLine_asCellRange() # This is a site dependent script
       self._setCellRange(*new_range, **kwd )
-      from zLOG import LOG
-      LOG('After _setCellRange in OrderLine',0,'')
+      #LOG('After _setCellRange in OrderLine',0,'')
       cell_range_key_list = self.getCellRangeKeyList(base_id = base_id)
       if cell_range_key_list <> [[None, None]] :
         for k in cell_range_key_list:
           c = self.newCell(*k, **kwd)
+          #LOG('OrderLine _setVariationCategoryList', 0, 'k = %s, c = %s, self.getVariationBaseCategoryList() = %s' % (repr(k), repr(c), repr(self.getVariationBaseCategoryList())))
           c.edit( domain_base_category_list = self.getVariationBaseCategoryList(),
                   mapped_value_property_list = ('target_quantity', 'price',),
                   predicate_operator = 'SUPERSET_OF',
                   predicate_value = filter(lambda k_item: k_item is not None, k),
-                  variation_category_list = filter(lambda k_item: k_item is not None, k)
+                  variation_category_list = filter(lambda k_item: k_item is not None, k),
+                  force_update = 1
                 )
-        LOG('After edit cells in OrderLine',0,'')
+        #LOG('After edit cells in OrderLine',0,'')
       else:
         # If only one cell, delete it
         cell_range_id_list = self.getCellRangeIdList(base_id = base_id)
-- 
2.30.9