Commit 69ddd7dc authored by Sebastien Robin's avatar Sebastien Robin

define the site at the creation of the document

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ea5ccbd1
...@@ -65,9 +65,18 @@ ...@@ -65,9 +65,18 @@
</item> </item>
<item> <item>
<key> <string>_body</string> </key> <key> <string>_body</string> </key>
<value> <string># XXX it might be better to set resource according to source_payment.\n <value> <string encoding="cdata"><![CDATA[
# XXX it might be better to set resource according to source_payment.\n
context.setResource(\'currency_module/\' + context.Baobab_getPortalReferenceCurrencyID())\n context.setResource(\'currency_module/\' + context.Baobab_getPortalReferenceCurrencyID())\n
</string> </value> user_site_list = context.Baobab_getUserAssignedSiteList()\n
if len(user_site_list)>0:\n
site = context.Baobab_getVaultSite(user_site_list[0])\n
site_url = site.getRelativeUrl()\n
context.setSite(site_url)\n
]]></string> </value>
</item> </item>
<item> <item>
<key> <string>_code</string> </key> <key> <string>_code</string> </key>
...@@ -118,6 +127,11 @@ context.setResource(\'currency_module/\' + context.Baobab_getPortalReferenceCurr ...@@ -118,6 +127,11 @@ context.setResource(\'currency_module/\' + context.Baobab_getPortalReferenceCurr
<string>kw</string> <string>kw</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
<string>user_site_list</string>
<string>len</string>
<string>_getitem_</string>
<string>site</string>
<string>site_url</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
343 345
\ 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