diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml index 00acd632fd035d617c275738709e98dba03bf046..de56cd03dd2e86410fffb59a4b8e0651fd64b13b 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_createReversalTransaction.xml @@ -79,6 +79,9 @@ if is_source:\n else:\n specific_reference = context.getDestinationReference()\n \n +causality_value_list = context.getCausalityValueList()\n +causality_value_list.append(context)\n +\n reversal = accounting_module.newContent (\n portal_type=context.getPortalType(),\n source_section=context.getSourceSection(),\n @@ -93,7 +96,7 @@ reversal = accounting_module.newContent (\n \'specific_reference\': specific_reference}),\n resource=context.getResource(),\n reference=context.getReference(),\n - causality_value=context,\n + causality_value_list=causality_value_list,\n created_by_builder=1 # XXX to prevent init script to create lines\n )\n \n @@ -189,6 +192,7 @@ return context.REQUEST.RESPONSE.redirect("%s/view?portal_status_message=%s" %\n <string>accounting_module</string> <string>is_source</string> <string>specific_reference</string> + <string>causality_value_list</string> <string>unicode</string> <string>reversal</string> <string>line_list</string> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index f1efb2054088985fad3cec9900b3f4a7561597b3..a540f59f28285c7848d5836124730005b529fea0 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -300 \ No newline at end of file +301 \ No newline at end of file