Commit cad2a8ee authored by Sebastien Robin's avatar Sebastien Robin

use getVaultType in OutgoingClassificationSurveyCell_getBaobabDestination

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12097 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d59b30f3
......@@ -68,10 +68,12 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>if context.getEmissionLetter() in context.Baobab_getUserEmissionLetterList():\n
return \'%s/auxiliaire/encaisse_des_billets_ventiles_et_detruits\' %(\'/\'.join(context.getSource().split(\'/\')[:-2]),)\n
<value> <string>document_site = context.getDeliveryValue().getBaobabSourceValue()\n
site_url = context.Baobab_getVaultSite(document_site).getRelativeUrl()\n
if context.getEmissionLetter() in context.Baobab_getUserEmissionLetterList():\n
return \'%s/caveau/serre/encaisse_des_billets_retires_de_la_circulation\' % site_url\n
else:\n
return \'%s/auxiliaire/encaisse_des_externes\' %(\'/\'.join(context.getSource().split(\'/\')[:-2]),)\n
return \'%s/caveau/auxiliaire/encaisse_des_externes\' % site_url\n
</string> </value>
</item>
<item>
......@@ -124,7 +126,8 @@ else:\n
<string>kw</string>
<string>_getattr_</string>
<string>context</string>
<string>_getitem_</string>
<string>document_site</string>
<string>site_url</string>
</tuple>
</value>
</item>
......
128
\ No newline at end of file
130
\ 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