From 4fdfcd058dcb3e2f327163d809488c4348c95a53 Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Fri, 18 Dec 2009 14:40:02 +0000
Subject: [PATCH] try to find 'quantity' if tested property is
 'converted_quantity'.

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

diff --git a/product/ERP5/Tool/SolverTool.py b/product/ERP5/Tool/SolverTool.py
index b692ca7ae6..a929658ef0 100644
--- a/product/ERP5/Tool/SolverTool.py
+++ b/product/ERP5/Tool/SolverTool.py
@@ -197,6 +197,9 @@ class SolverTool(BaseTool):
     """
     # Short Term Implementation Approach
     test_property = divergence_tester.getTestedProperty()
+    # XXX hardcoded
+    if test_property == 'converted_quantity':
+      test_property = 'quantity'
     application_value = movement
     try:
       while not application_value.hasProperty(test_property):
-- 
2.30.9