[Erp5-report] r24857 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 11 10:48:49 CET 2008
Author: jerome
Date: Thu Dec 11 10:48:48 2008
New Revision: 24857
URL: http://svn.erp5.org?rev=24857&view=rev
Log:
fix the stat display for "Count" on account module view
Modified:
erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml
erp5/trunk/bt5/erp5_accounting/bt/revision
Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml?rev=24857&r1=24856&r2=24857&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountModule_getAccountingTransactionCount.xml [utf8] Thu Dec 11 10:48:48 2008
@@ -55,10 +55,6 @@
<key> <string>_body</string> </key>
<value> <string>kwd = context.ERP5Accounting_getParams(selection_name)\n
\n
-# XXX missing :(\n
-# this may fail if we have movements on something else than accounts\n
-#kwd[\'where_expression\'] = \'node.parent_uid = %s\' context.account_module.getUid()\n
-\n
if kw.get(\'stat\'):\n
selection_params = context.portal_selections.getSelectionParamsFor(selection_name)\n
selection_domain = context.portal_selections.getSelectionDomainDictFor(selection_name)\n
@@ -79,6 +75,8 @@
# if yes, apply the same filter here\n
kwd[\'stock.node_uid\'] = [x.uid for x in\n
context.portal_catalog(**selection_params)]\n
+ else:\n
+ kwd[\'portal_type\'] = context.getPortalAccountingMovementTypeList()\n
return context.portal_simulation.getInventoryStat( **kwd )[0][\'stock_uid\']\n
\n
kwd[\'stock.node_uid\'] = brain.uid\n
Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=24857&r1=24856&r2=24857&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Thu Dec 11 10:48:48 2008
@@ -1,1 +1,1 @@
-827
+828
More information about the Erp5-report
mailing list