[Erp5-report] r41490 romain - in /erp5/trunk/bt5/erp5_commerce: SkinTemplateItem/portal_ski...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 16 11:37:25 CET 2010


Author: romain
Date: Thu Dec 16 11:37:25 2010
New Revision: 41490

URL: http://svn.erp5.org?rev=41490&view=rev
Log:
Provide compatibility by automatically setting the shopping card customer.

Modified:
    erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartCustomer.xml
    erp5/trunk/bt5/erp5_commerce/bt/revision

Modified: erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartCustomer.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartCustomer.xml?rev=41490&r1=41489&r2=41490&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartCustomer.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartCustomer.xml [utf8] Thu Dec 16 11:37:25 2010
@@ -52,7 +52,12 @@
             <key> <string>_body</string> </key>
             <value> <string>"""Get the shopping cart customer"""\n
 shopping_cart = context.SaleOrder_getShoppingCart()\n
-return shopping_cart.getDestinationSectionValue()\n
+result = shopping_cart.getDestinationSectionValue()\n
+if result is None:\n
+  shopping_cart.SaleOrder_setShoppingCartCustomer()\n
+  result = shopping_cart.getDestinationSectionValue()\n
+\n
+return result\n
 </string> </value>
         </item>
         <item>
@@ -98,6 +103,8 @@ return shopping_cart.getDestinationSecti
                             <string>_getattr_</string>
                             <string>context</string>
                             <string>shopping_cart</string>
+                            <string>result</string>
+                            <string>None</string>
                           </tuple>
                         </value>
                     </item>

Modified: erp5/trunk/bt5/erp5_commerce/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_commerce/bt/revision?rev=41490&r1=41489&r2=41490&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_commerce/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_commerce/bt/revision [utf8] Thu Dec 16 11:37:25 2010
@@ -1 +1 @@
-273
\ No newline at end of file
+275
\ No newline at end of file



More information about the Erp5-report mailing list