Commit 630ed0b1 authored by Jérome Perrin's avatar Jérome Perrin

get dates, section and simulation states from selection (for reports)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6475 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 40475e3a
...@@ -73,10 +73,14 @@ r_ = lambda x: context.Base_getRoundValue(x, precision)\n ...@@ -73,10 +73,14 @@ r_ = lambda x: context.Base_getRoundValue(x, precision)\n
\n \n
# Read settings from user preference\n # Read settings from user preference\n
preference = context.getPortalObject().portal_preferences\n preference = context.getPortalObject().portal_preferences\n
simulation_state = preference.getPreferredAccountingTransactionSimulationStateList()\n simulation_state = kw.get(\'simulation_state\', \n
section_category = preference.getPreferredAccountingTransactionSectionCategory()\n preference.getPreferredAccountingTransactionSimulationStateList())\n
from_date = preference.getPreferredAccountingTransactionFromDate()\n section_category = kw.get(\'section_category\', \n
at_date = preference.getPreferredAccountingTransactionAtDate()\n preference.getPreferredAccountingTransactionSectionCategory())\n
from_date = kw.get(\'from_date\',\n
preference.getPreferredAccountingTransactionFromDate())\n
at_date = kw.get(\'at_date\',\n
preference.getPreferredAccountingTransactionAtDate())\n
\n \n
# Build the common inventory dict\n # Build the common inventory dict\n
params = {}\n params = {}\n
......
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