diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_init.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_init.xml index 2d91e28cb223787a3d1d7b5faef69d609b425c5b..869df4529143d6502945fdf7ea2446b37d0f49b1 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_init.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/BankingOperationLine_init.xml @@ -96,9 +96,7 @@ <item> <key> <string>_proxy_roles</string> </key> <value> - <tuple> - <string>Manager</string> - </tuple> + <tuple/> </value> </item> <item> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml index b4bff5efbe36ad3aa37d93d0e395aefa7e969982..d0c8724d57b11b01d2aa7db428527ea433ba1ee3 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getPortalReferenceCurrencyID.xml @@ -92,6 +92,12 @@ return context.getPortalObject().getProperty(\'reference_currency_id\')\n <key> <string>_params</string> </key> <value> <string></string> </value> </item> + <item> + <key> <string>_proxy_roles</string> </key> + <value> + <tuple/> + </value> + </item> <item> <key> <string>errors</string> </key> <value> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUserAssignedFunctionList.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUserAssignedFunctionList.xml index fa0b16bba75cafdcd195ce46379aca99551c8681..1ac639782557ea221c10da5f7c6d395764789d28 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUserAssignedFunctionList.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Baobab_getUserAssignedFunctionList.xml @@ -87,7 +87,7 @@ def getFunctionList(user_id=user_id):\n \n getFunctionList = CachingMethod(getFunctionList, id=\'Baobab_getUserAssignedFunctionList\', \n cache_factory="erp5_ui_short")\n -return getFunctionList()\n +return getFunctionList(user_id=user_id)\n ]]></string> </value> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getPreviousState.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getPreviousState.xml index 9d093d5378928c3938cd0293a60bfddb636a195a..09e0e0a9b48898aa4700b0206fd08d5a913b033e 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getPreviousState.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Base_getPreviousState.xml @@ -72,7 +72,6 @@ previous_state = None\n found_given_state = 0\n for workflow_item in workflow_item_list:\n current_state = workflow_item.getProperty(\'state\')\n - context.log(\'current_state\',current_state)\n if current_state == state:\n found_given_state = 1\n continue\n diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml index eb639a5cb191676caa0d56b5c76c19373a0bb4f6..495d068723d07d7c42ead8430849ae9f37b17607 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CheckOperationLine_view/my_source_payment_reference.xml @@ -553,7 +553,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: here.getSourcePaymentValue().getInternalBankAccountNumber()</string> </value> + <value> <string>python: here.getSourcePaymentInternalBankAccountNumber()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_view/my_destination_payment_reference.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_view/my_destination_payment_reference.xml index 409c89bd5ef0a97c44458b14232fb8030d2aa3f4..8143121ae341273e0558da893dc7a6d06a49a92e 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_view/my_destination_payment_reference.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Checkbook_view/my_destination_payment_reference.xml @@ -511,7 +511,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: here.getDestinationPaymentValue().getInternalBankAccountNumber()</string> </value> + <value> <string>python: here.getDestinationPaymentInternalBankAccountNumber()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CounterModule_getVaultTransactionList.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CounterModule_getVaultTransactionList.xml index 0178a27cada316f0739342aa9ee88656e90d2d1e..541eede8c5d10aa59298c8a89e19eb84e98acee0 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CounterModule_getVaultTransactionList.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CounterModule_getVaultTransactionList.xml @@ -208,6 +208,7 @@ for resource in resource_dict.keys():\n if current_resource_portal_type not in resource_portal_type:\n continue\n if len(resource)==3: # case of history\n + context.log(\'movement uid before error\',resource[2])\n movement = context.portal_catalog.getObject(resource[2])\n #context.log(\'movement\',movement)\n explanation_value = movement\n @@ -231,11 +232,13 @@ for resource in resource_dict.keys():\n except KeyError:\n resource_in_vault = {\'quantity\' : 0,\'total_price\' : 0}\n total_quantity = resource_in_vault[\'quantity\']\n + total_price = resource_in_vault[\'total_price\']\n if banknote_quantity_divisor is not None:\n if current_resource_portal_type == \'Banknote\':\n total_quantity = round(total_quantity / banknote_quantity_divisor,0)\n + total_price = round(total_price / banknote_quantity_divisor,0)\n tmp_dict.update({\'total_quantity\' : total_quantity,\n - \'total_price\' : resource_in_vault[\'total_price\'],})\n + \'total_price\' : total_price,})\n if vault_report_type==\'history\':\n tmp_dict.update({\'date\':resource_in_vault[\'date\']})\n general_total_price += resource_in_vault[\'total_price\']\n diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyExchangeLine_view/my_base_price.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyExchangeLine_view/my_base_price.xml index 7592c4b900d225e8abecc1f25a2e06828aaf7e82..c010bd41dd46a0c07c54996f4e6f0600a6ef761e 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyExchangeLine_view/my_base_price.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/CurrencyExchangeLine_view/my_base_price.xml @@ -214,7 +214,7 @@ </item> <item> <key> <string>enabled</string> </key> - <value> <int>0</int> </value> + <value> <int>1</int> </value> </item> <item> <key> <string>external_validator</string> </key> diff --git a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/my_destination_payment_reference.xml b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/my_destination_payment_reference.xml index cdb77d8a31797e48b75f2f45ecb9919fac864b77..be8103c16f70302f1b57d3044d3d08364487dbd5 100644 --- a/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/my_destination_payment_reference.xml +++ b/bt5/erp5_banking_core/SkinTemplateItem/portal_skins/erp5_banking_core/Delivery_viewAccounting/my_destination_payment_reference.xml @@ -511,7 +511,7 @@ <dictionary> <item> <key> <string>_text</string> </key> - <value> <string>python: here.getDestinationPaymentValue().getInternalBankAccountNumber()</string> </value> + <value> <string>python: here.getDestinationPaymentInternalBankAccountNumber()</string> </value> </item> </dictionary> </pickle> diff --git a/bt5/erp5_banking_core/bt/revision b/bt5/erp5_banking_core/bt/revision index e0d1ea1e9ac39d1d0d9353874b9ca7b440121f23..bea0d09c49935aac714f5439285e2706b15e1dd9 100644 --- a/bt5/erp5_banking_core/bt/revision +++ b/bt5/erp5_banking_core/bt/revision @@ -1 +1 @@ -205 \ No newline at end of file +207 \ No newline at end of file