diff --git a/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/TransmissionSheet_checkInvoices.xml b/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/TransmissionSheet_checkInvoices.xml index 8d4ecbbac946aa5fe23349b85ac11849c1a0062f..012272ae879b21a1edbce063f930cdccfec2e4f7 100644 --- a/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/TransmissionSheet_checkInvoices.xml +++ b/bt5/erp5_accounting_l10n_fr_m9/WorkflowTemplateItem/portal_workflow/transmission_sheet_workflow/scripts/TransmissionSheet_checkInvoices.xml @@ -74,7 +74,7 @@ from Products.DCWorkflow.DCWorkflow import ValidationFailed\n transmission_sheet = sci[\'object\']\n portal = transmission_sheet.getPortalObject()\n \n -if not transmission_sheet.getRelatedAggregateList(\n +if not transmission_sheet.getAggregateRelatedList(\n portal_type=portal.getPortalInvoiceTypeList()):\n raise ValidationFailed(\'No Invoices selected.\')\n </string> </value> diff --git a/bt5/erp5_accounting_l10n_fr_m9/bt/revision b/bt5/erp5_accounting_l10n_fr_m9/bt/revision index 62f9457511f879886bb7728c986fe10b0ece6bcb..c7930257dfef505fd996e1d6f22f2f35149990d0 100644 --- a/bt5/erp5_accounting_l10n_fr_m9/bt/revision +++ b/bt5/erp5_accounting_l10n_fr_m9/bt/revision @@ -1 +1 @@ -6 \ No newline at end of file +7 \ No newline at end of file