diff --git a/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCart.xml b/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCart.xml index b9c0d50cbc758c8f3588dfb5236a8c3962a982cf..7a2756576cf9f14026ac5b7662aefd6659790b6c 100644 --- a/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCart.xml +++ b/bt5/erp5_commerce/SkinTemplateItem/portal_skins/erp5_commerce/SaleOrder_getShoppingCart.xml @@ -75,7 +75,8 @@ else:\n session = portal_sessions[session_id]\n if not shopping_cart_id in session.keys():\n web_site = context.getWebSiteValue()\n - shopping_cart = portal_sessions.newContent(id=shopping_cart_id, portal_type=\'Sale Order\', temp_object=True)\n + from Products.ERP5Type.Document import newTempSaleOrder\n + shopping_cart = newTempSaleOrder(portal_sessions, shopping_cart_id)\n shopping_cart.setPriceCurrency(web_site.WebSite_getShoppingCartDefaultCurrency().getRelativeUrl())\n session[shopping_cart_id] = shopping_cart\n \n @@ -141,7 +142,8 @@ else:\n <string>_getitem_</string> <string>session</string> <string>web_site</string> - <string>True</string> + <string>Products.ERP5Type.Document</string> + <string>newTempSaleOrder</string> <string>shopping_cart</string> <string>_write_</string> </tuple> diff --git a/bt5/erp5_commerce/bt/revision b/bt5/erp5_commerce/bt/revision index 9754915269eca9a8e68210cbe363f9fa9be817e1..ddc17b20b78d2bacaba1fee53301ffb2a7955fec 100644 --- a/bt5/erp5_commerce/bt/revision +++ b/bt5/erp5_commerce/bt/revision @@ -1 +1 @@ -259 \ No newline at end of file +260 \ No newline at end of file