Commit 1296287a authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Shopping cart can be None.

parent ea2691db
......@@ -60,7 +60,10 @@
name probably.\n
- make sure this script is not called more than once per page\n
"""\n
shopping_cart_order_line_list = context.SaleOrder_getShoppingCart().contentValues(portal_type="Sale Order Line")\n
shopping_cart = context.SaleOrder_getShoppingCart()\n
if shopping_cart is None:\n
return []\n
shopping_cart_order_line_list = shopping_cart.contentValues(portal_type="Sale Order Line")\n
if include_shipping:\n
return shopping_cart_order_line_list\n
else:\n
......
319
\ No newline at end of file
320
\ 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