diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml index 9be64f4d446ba4cb73200416b938a054e5685987..e55598c6ca89e26fdd160d58b30e09b37b181286 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Account_getFormattedTitle.xml @@ -68,7 +68,10 @@ </item> <item> <key> <string>_body</string> </key> - <value> <string>gap_id = account.Account_getGapId()\n + <value> <string>if account is None:\n + account = context\n +\n +gap_id = account.Account_getGapId()\n title = account.getTitle()\n \n if gap_id.isdigit():\n @@ -97,7 +100,7 @@ return title\n </item> <item> <key> <string>_params</string> </key> - <value> <string>account</string> </value> + <value> <string>account=None</string> </value> </item> <item> <key> <string>errors</string> </key> @@ -124,6 +127,8 @@ return title\n <value> <tuple> <string>account</string> + <string>None</string> + <string>context</string> <string>_getattr_</string> <string>gap_id</string> <string>title</string> @@ -138,7 +143,9 @@ return title\n <item> <key> <string>func_defaults</string> </key> <value> - <none/> + <tuple> + <none/> + </tuple> </value> </item> <item> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index eebd1d10b6ec9917baf4df7f2e3de79e031a9af7..b2412e34dff05e77952f3f930772631cac5a3be7 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -61 \ No newline at end of file +62 \ No newline at end of file