Commit e324970a authored by Romain Courteaud's avatar Romain Courteaud

erp5_payroll_l10n_fr: fixup Base_redirect usage

parent a4cc5d09
holiday_acquisition = context.getCausalityRelatedValue(portal_type='Holiday Acquisition')
if holiday_acquisition:
return holiday_acquisition.Base_redirect('view', context.Base_translateString('Holiday Acquisition is already created'))
return holiday_acquisition.Base_redirect('view', keep_items={'portal_status_message': context.Base_translateString('Holiday Acquisition is already created')})
employee = context.getSourceSectionValue()
stop_date = context.getStopDate()
......@@ -24,5 +24,4 @@ holiday_acquisition = context.holiday_acquisition_module.newContent(
)
holiday_acquisition.plan()
return holiday_acquisition.Base_redirect('view',
context.Base_translateString('Holiday Acquisition is created'))
return holiday_acquisition.Base_redirect('view', keep_items={'portal_status_message': context.Base_translateString('Holiday Acquisition is created')})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment