Commit a6b91ef0 authored by Kevin Deldycke's avatar Kevin Deldycke

Remove suffix "transaction_" of query parameters to prepare the full migration...

Remove suffix "transaction_" of query parameters to prepare the full migration of accouting stuff to getInventory API.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@6415 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8ec8c009
...@@ -160,13 +160,11 @@ def getDefaultColumnValues(node_uid=0, **kw):\n ...@@ -160,13 +160,11 @@ def getDefaultColumnValues(node_uid=0, **kw):\n
# Use custom SQL query to get Bank Account Balance (because standard getInventory doesn\'t work)\n # Use custom SQL query to get Bank Account Balance (because standard getInventory doesn\'t work)\n
if kw.has_key(\'bank_account_alt\') and kw[\'bank_account_alt\']:\n if kw.has_key(\'bank_account_alt\') and kw[\'bank_account_alt\']:\n
# Adapt parameters for the custom zSQLMethod\n # Adapt parameters for the custom zSQLMethod\n
new_kw = { \'transaction_simulation_state\': get_inventory_kw[\'simulation_state\']\n new_kw = { \'getParentUid\' : organisation_list[0].getUid()\n
, \'getParentUid\' : organisation_list[0].getUid()\n
, \'getUid\' : get_inventory_kw[\'payment_uid\']\n , \'getUid\' : get_inventory_kw[\'payment_uid\']\n
, \'stat\' : 1\n , \'stat\' : 1\n
}\n }\n
del get_inventory_kw[\'node_uid\']\n del get_inventory_kw[\'node_uid\']\n
del get_inventory_kw[\'simulation_state\']\n
get_inventory_kw.update(new_kw)\n get_inventory_kw.update(new_kw)\n
\n \n
# Helpfull method to get the balance\n # Helpfull method to get the balance\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