Commit edf7288f authored by Romain Courteaud's avatar Romain Courteaud

Provide compatibility by automatically setting the shopping card customer.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41490 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c43d6452
......@@ -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.getDestinationSectionValue()\n
<string>_getattr_</string>
<string>context</string>
<string>shopping_cart</string>
<string>result</string>
<string>None</string>
</tuple>
</value>
</item>
......
273
\ No newline at end of file
275
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment