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 @@ ...@@ -54,11 +54,10 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>""" \n <value> <string>""" \n
Return default currency used in shopping_cart.\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
"""\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> </string> </value>
</item> </item>
<item> <item>
...@@ -74,9 +73,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n ...@@ -74,9 +73,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -105,6 +102,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n ...@@ -105,6 +102,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
<tuple> <tuple>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>web_site</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -121,7 +119,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n ...@@ -121,7 +119,7 @@ return context.getPortalObject().restrictedTraverse(\'currency_module/EUR\')\n
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SaleOrder_getShoppingCartDefaultCurrency</string> </value> <value> <string>WebSite_getShoppingCartDefaultCurrency</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -54,11 +54,9 @@ ...@@ -54,11 +54,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>""" \n <value> <string>""" \n
Return default currency used in shopping_cart.\n Return reference of the default currency used in Shopping Cart.\n
Please update accordingly relative path. \n
XXX: there must be an way to do this better?\n
"""\n """\n
return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getReference()\n return context.getWebSiteValue().WebSite_getShoppingCartDefaultCurrency().getReference()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -74,9 +72,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getR ...@@ -74,9 +72,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getR
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -121,7 +117,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getR ...@@ -121,7 +117,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getR
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SaleOrder_getShoppingCartDefaultCurrencyCode</string> </value> <value> <string>WebSite_getShoppingCartDefaultCurrencyCode</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
...@@ -54,11 +54,9 @@ ...@@ -54,11 +54,9 @@
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string>""" \n <value> <string>""" \n
Return default currency used in shopping_cart.\n Return the sort title of the default currency used in Shopping Cart.\n
Please update accordingly relative path. \n
XXX: there must be an way to do this better?\n
"""\n """\n
return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getShortTitle()\n return context.getWebSiteValue().WebSite_getShoppingCartDefaultCurrency().getShortTitle()\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
...@@ -74,9 +72,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getS ...@@ -74,9 +72,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getS
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple> <tuple/>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
...@@ -121,7 +117,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getS ...@@ -121,7 +117,7 @@ return context.getPortalObject().SaleOrder_getShoppingCartDefaultCurrency().getS
</item> </item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>SaleOrder_getShoppingCartDefaultCurrencySymbol</string> </value> <value> <string>WebSite_getShoppingCartDefaultCurrencySymbol</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
230 231
\ 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