Commit c0c1dd96 authored by Lucas Carvalho's avatar Lucas Carvalho

- renamed some scripts:

SalerOrder_getShopppingCartDefaultCurrency to WebSite_getShopppingCartDefaultCurrency
SalerOrder_getShopppingCartDefaultCurrencyCode to WebSite_getShopppingCartDefaultCurrencyCode
SalerOrder_getShopppingCartDefaultCurrencySymbol to WebSite_getShopppingCartDefaultCurrencySymbol

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29104 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 61adce80
......@@ -54,11 +54,10 @@
<item>
<key> <string>_body</string> </key>
<value> <string>""" \n
Return default currency used in shopping_cart.\n
Please update accordingly relative path. \n
XXX: there must be an way to do this better?\n
Return default currency used in Shopping Cart.\n
"""\n
return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
web_site = context.getWebSiteValue()\n
return context.getPortalObject().restrictedTraverse(web_site.getLayoutProperty(\'ecommerce_base_currency\', \'currency_module/EUR\'))\n
</string> </value>
</item>
<item>
......@@ -74,9 +73,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -105,6 +102,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
<tuple>
<string>_getattr_</string>
<string>context</string>
<string>web_site</string>
</tuple>
</value>
</item>
......@@ -121,7 +119,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SaleOrder_getShoppingCartDefaultCurrency</string> </value>
<value> <string>WebSite_getShoppingCartDefaultCurrency</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -54,11 +54,9 @@
<item>
<key> <string>_body</string> </key>
<value> <string>""" \n
Return default currency used in shopping_cart.\n
Please update accordingly relative path. \n
XXX: there must be an way to do this better?\n
Return reference of the default currency used in Shopping Cart.\n
"""\n
return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getReference()\n
return context.getWebSiteValue().WebSite_getShoppingCartDefaultCurrency().getReference()\n
</string> </value>
</item>
<item>
......@@ -74,9 +72,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getR
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -121,7 +117,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getR
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SaleOrder_getShoppingCartDefaultCurrencyCode</string> </value>
<value> <string>WebSite_getShoppingCartDefaultCurrencyCode</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -54,11 +54,9 @@
<item>
<key> <string>_body</string> </key>
<value> <string>""" \n
Return default currency used in shopping_cart.\n
Please update accordingly relative path. \n
XXX: there must be an way to do this better?\n
Return the sort title of the default currency used in Shopping Cart.\n
"""\n
return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getShortTitle()\n
return context.getWebSiteValue().WebSite_getShoppingCartDefaultCurrency().getShortTitle()\n
</string> </value>
</item>
<item>
......@@ -74,9 +72,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getS
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
<tuple/>
</value>
</item>
<item>
......@@ -121,7 +117,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getS
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SaleOrder_getShoppingCartDefaultCurrencySymbol</string> </value>
<value> <string>WebSite_getShoppingCartDefaultCurrencySymbol</string> </value>
</item>
<item>
<key> <string>title</string> </key>
......
230
\ No newline at end of file
231
\ 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