From eb18000453535cce4af19c5d057d2b778e9fb3ae Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Mon, 8 Mar 2010 15:22:03 +0000
Subject: [PATCH] call setMappedProperty() instead of edit() to support mapped
 properties.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33502 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/AcceptSolver.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/product/ERP5/Document/AcceptSolver.py b/product/ERP5/Document/AcceptSolver.py
index 8cc9dc2081..90ac5449f8 100644
--- a/product/ERP5/Document/AcceptSolver.py
+++ b/product/ERP5/Document/AcceptSolver.py
@@ -107,4 +107,5 @@ class AcceptSolver(SolverMixin, ConfigurableMixin, XMLObject):
       for property_id in property_id_list:
         if not simulation_movement.isPropertyRecorded(property_id):
           simulation_movement.recordProperty(property_id)
-    simulation_movement.edit(**value_dict)
+    for property_id, value in value_dict.iteritems():
+      simulation_movement.setMappedProperty(property_id, value)
-- 
2.30.9