[Erp5-report] r37393 yo - /erp5/trunk/products/ERP5/Document/MirrorMovementGroup.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Aug 2 11:04:07 CEST 2010


Author: yo
Date: Mon Aug  2 11:04:02 2010
New Revision: 37393

URL: http://svn.erp5.org?rev=37393&view=rev
Log:
Fix the comparison method. With the previous one, a mirror mapping was always applied, which is simply useless.

Modified:
    erp5/trunk/products/ERP5/Document/MirrorMovementGroup.py

Modified: erp5/trunk/products/ERP5/Document/MirrorMovementGroup.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/MirrorMovementGroup.py?rev=37393&r1=37392&r2=37393&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/MirrorMovementGroup.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/MirrorMovementGroup.py [utf8] Mon Aug  2 11:04:02 2010
@@ -71,4 +71,4 @@ def _isMirrored(document):
   # reverse or not by just comparing its source_section's id and
   # destination_section's id, whose result should be consistent for each
   # document.
-  return document.getDestinationSectionId() <> document.getSourceSectionId()
+  return document.getDestinationSectionId() > document.getSourceSectionId()




More information about the Erp5-report mailing list