Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
erp5
Commits
de898a94
Commit
de898a94
authored
Dec 16, 2012
by
Rafael Monnerat
👻
Committed by
Xiaowu Zhang
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix name convention (no plural)
parent
12346306
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartItemList.xml
...skins/erp5_commerce/SaleOrder_getShoppingCartItemList.xml
+3
-4
bt5/erp5_commerce/bt/revision
bt5/erp5_commerce/bt/revision
+1
-1
No files found.
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartItemList.xml
View file @
de898a94
...
...
@@ -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_line
s
= 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_line
s
\n
return shopping_cart_order_line
_list
\n
else:\n
return filter(lambda x: x.getId()!=\'shipping_method\', shopping_cart_order_line
s
)\n
return filter(lambda x: x.getId()!=\'shipping_method\', shopping_cart_order_line
_list
)\n
</string>
</value>
</item>
<item>
...
...
bt5/erp5_commerce/bt/revision
View file @
de898a94
309
\ No newline at end of file
310
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment