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 @@ ...@@ -54,18 +54,17 @@
Return list of shopping cart items as list representing order lines.\n Return list of shopping cart items as list representing order lines.\n
\n \n
TODO:\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 - 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 are not always flat. Consider large projects or matrices in B2B sales\n
of apparel. SaleOrder_getShoppingCartItemTree would be a better\n of apparel. SaleOrder_getShoppingCartItemTree would be a better\n
name probably.\n name probably.\n
- make sure this script is not called more than once per page\n - make sure this script is not called more than once per page\n
"""\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 if include_shipping:\n
return shopping_cart_order_lines\n return shopping_cart_order_line_list\n
else:\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> </string> </value>
</item> </item>
<item> <item>
......
309 310
\ No newline at end of file \ 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