[Erp5-report] r28901 - /erp5/trunk/products/ERP5/Document/DeliveryRule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 10 16:55:33 CEST 2009


Author: jerome
Date: Thu Sep 10 16:55:31 2009
New Revision: 28901

URL: http://svn.erp5.org?rev=28901&view=rev
Log:
in non bpm version of delivery rule, copy description and title on simulation
movements.

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

Modified: erp5/trunk/products/ERP5/Document/DeliveryRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/DeliveryRule.py?rev=28901&r1=28900&r2=28901&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/DeliveryRule.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/DeliveryRule.py [utf8] Thu Sep 10 16:55:31 2009
@@ -135,7 +135,10 @@
               price_currency=deliv_mvt.getPriceCurrency(),
               base_contribution_list=deliv_mvt.getBaseContributionList(),
               base_application_list=deliv_mvt.getBaseApplicationList(),
+              description=deliv_mvt.getDescription(),
           )
+          if deliv_mvt.hasTitle():
+            new_sim_mvt.setTitle(deliv_mvt.getTitle())
         elif sim_mvt in existing_movement_list:
           if sim_mvt not in immutable_movement_list:
             # modification allowed
@@ -167,7 +170,10 @@
                 price_currency=deliv_mvt.getPriceCurrency(),
                 base_contribution_list=deliv_mvt.getBaseContributionList(),
                 base_application_list=deliv_mvt.getBaseApplicationList(),
+                description=deliv_mvt.getDescription(),
                 force_update=1)
+            if deliv_mvt.hasTitle():
+              sim_mvt.setTitle(deliv_mvt.getTitle())
           else:
             # modification disallowed, must compensate
             pass




More information about the Erp5-report mailing list