diff --git a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml index 4c540039d644e189a2cecc1508f709734ea00ff7..d6bc353b0668b381c9db6cba40e991d1aa3ed7ae 100644 --- a/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml +++ b/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_createRelatedPaymentTransaction.xml @@ -62,7 +62,8 @@ from DateTime import DateTime\n # activities, because it doesn\'t rely on REQUEST[\'PARENTS\']\n Base_translateString = context.Base_translateString\n \n -date = DateTime()\n +if date is None:\n + date = DateTime()\n portal = context.getPortalObject()\n payment_dict = {}\n is_source = context.AccountingTransaction_isSourceView()\n @@ -200,6 +201,7 @@ else:\n <string>_getattr_</string> <string>context</string> <string>Base_translateString</string> + <string>None</string> <string>portal</string> <string>payment_dict</string> <string>is_source</string> @@ -208,7 +210,6 @@ else:\n <string>True</string> <string>total_payable_price_details</string> <string>sum</string> - <string>None</string> <string>str</string> <string>unicode</string> <string>related_payment</string> diff --git a/bt5/erp5_accounting/bt/revision b/bt5/erp5_accounting/bt/revision index 274c0052dd5408f8ae2bc8440029ff67d79bc5c3..125a1031fe0833a01d1a842d5341d1dafc4efb01 100644 --- a/bt5/erp5_accounting/bt/revision +++ b/bt5/erp5_accounting/bt/revision @@ -1 +1 @@ -1234 \ No newline at end of file +1236 \ No newline at end of file