diff --git a/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml b/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml index 84837f6b79163224b73d649a6c167b77adf2d38e..abc3f1680fe25d76380c0cca6dfc379617c22a48 100644 --- a/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml +++ b/bt5/erp5_banking_check/PortalTypeAllowedContentTypeTemplateItem/allowed_content_types.xml @@ -43,6 +43,7 @@ <item>Stop Payment</item> </portal_type> <portal_type id="Traveler Check Purchase"> + <item>Banking Operation Line</item> <item>Checkbook Delivery Line</item> </portal_type> <portal_type id="Traveler Check Purchase Module"> diff --git a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_reception_workflow/scripts/CheckbookReception_generateItemList.xml b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_reception_workflow/scripts/CheckbookReception_generateItemList.xml index 9d708027f2521474bb10785f69c12abda05fa9e8..bc38e5eeadecf7171b05148f72e1533908fd1af1 100644 --- a/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_reception_workflow/scripts/CheckbookReception_generateItemList.xml +++ b/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_reception_workflow/scripts/CheckbookReception_generateItemList.xml @@ -201,9 +201,10 @@ for line in line_list:\n start_date = transaction.getStartDate()\n destination_section = item.getDestinationSection()\n item.setStartDate(start_date)\n - for j in xrange(reference_to_int(reference_range_min), last_reference_value + 1):\n + reference_list = xrange(reference_to_int(reference_range_min), last_reference_value + 1)\n + checkReferenceUniqueness(reference_list, model)\n + for j in reference_list:\n reference = int_to_reference(j, reference_range_min)\n - checkReferenceUniqueness(reference, model)\n check = item.newContent(portal_type=\'Check\', title=str(reference), activate_kw={\'tag\': \'check_%s_%s\' % (model, reference)})\n check.setDestination(destination_section)\n check.setStartDate(start_date)\n @@ -321,6 +322,7 @@ for line in line_list:\n <string>reference_range_max</string> <string>start_date</string> <string>destination_section</string> + <string>reference_list</string> <string>j</string> <string>reference</string> <string>str</string> diff --git a/bt5/erp5_banking_check/bt/revision b/bt5/erp5_banking_check/bt/revision index 3fdc173dabdd1038c973c374ec30f55cfddafdfb..a09fd8ad47268facfe50ea952d980dc5627594a2 100644 --- a/bt5/erp5_banking_check/bt/revision +++ b/bt5/erp5_banking_check/bt/revision @@ -1 +1 @@ -122 \ No newline at end of file +124 \ No newline at end of file diff --git a/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list b/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list index 04ebfbfb0af07434fe98b107e9577ce5798409c0..a744e91c14d6892c6e16079bbb292141c4d29175 100644 --- a/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list +++ b/bt5/erp5_banking_check/bt/template_portal_type_allowed_content_type_list @@ -14,6 +14,7 @@ Checkbook Vault Transfer | Checkbook Delivery Line Stop Payment Module | Stop Payment Stop Payment | Checkbook Delivery Line Traveler Check Purchase Module | Traveler Check Purchase +Traveler Check Purchase | Banking Operation Line Traveler Check Purchase | Checkbook Delivery Line Traveler Check Sale Module | Traveler Check Sale Traveler Check Sale | Banking Operation Line