Commit 1db1610e authored by Jérome Perrin's avatar Jérome Perrin

Fix bug on budget consumption views, sum and details where using different...

Fix bug on budget consumption views, sum and details where using different simulation state parameters
Signed-off-by: Aurel's avatarAurélien Calonne <aurel@nexedi.com>
parent bf37dd26
......@@ -77,7 +77,10 @@ if engaged_budget:\n
portal.getPortalCurrentInventoryStateList() +\n
portal.getPortalTransitInventoryStateList())\n
\n
kw.setdefault(\'simulation_state\', portal.getPortalCurrentInventoryStateList())\n
# those are simulation state parameters equivalent to getCurrentInventoryQuery that can be passed to getMovementHistoryList\n
kw.setdefault(\'simulation_state\', portal.getPortalCurrentInventoryStateList() + portal.getPortalTransitInventoryStateList())\n
kw.setdefault(\'transit_simulation_state\', portal.getPortalTransitInventoryStateList())\n
kw.setdefault(\'omit_transit\', False)\n
\n
return kw\n
</string> </value>
......
......@@ -1357,7 +1357,9 @@ class TestBudget(ERP5TypeTestCase):
self.assertEquals({
'from_date': None,
'simulation_state': ('delivered', 'stopped'),
'simulation_state': ('delivered', 'stopped', 'started'),
'transit_simulation_state': ('started', ),
'omit_transit': False,
# XXX order is reversed for some reason ...
'section_category': ['group/demo_group/sub2',
'group/demo_group/sub1'],
......
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