Commit de898a94 authored by Rafael Monnerat's avatar Rafael Monnerat Committed by Xiaowu Zhang

Fix name convention (no plural)

parent 12346306
......@@ -54,18 +54,17 @@
Return list of shopping cart items as list representing order lines.\n
\n
TODO:\n
- rename shopping_cart_order_lines to shopping_cart_order_line_list\n
- make this method compatible with cells and trees in orders. Orders\n
are not always flat. Consider large projects or matrices in B2B sales\n
of apparel. SaleOrder_getShoppingCartItemTree would be a better\n
name probably.\n
- make sure this script is not called more than once per page\n
"""\n
shopping_cart_order_lines = context.SaleOrder_getShoppingCart().contentValues(portal_type="Sale Order Line")\n
shopping_cart_order_line_list = context.SaleOrder_getShoppingCart().contentValues(portal_type="Sale Order Line")\n
if include_shipping:\n
return shopping_cart_order_lines\n
return shopping_cart_order_line_list\n
else:\n
return filter(lambda x: x.getId()!=\'shipping_method\', shopping_cart_order_lines)\n
return filter(lambda x: x.getId()!=\'shipping_method\', shopping_cart_order_line_list)\n
</string> </value>
</item>
<item>
......
309
\ No newline at end of file
310
\ 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