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
1296287a
Commit
1296287a
authored
May 23, 2013
by
Rafael Monnerat
👻
Committed by
Xiaowu Zhang
Feb 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shopping cart can be None.
parent
ea2691db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCartItemList.xml
...skins/erp5_commerce/SaleOrder_getShoppingCartItemList.xml
+4
-1
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 @
1296287a
...
...
@@ -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
...
...
bt5/erp5_commerce/bt/revision
View file @
1296287a
319
\ No newline at end of file
320
\ 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