Commit f6407fdb authored by Romain Courteaud's avatar Romain Courteaud

erp5_payroll_l10n_fr: fixup Base_redirect usage

parent da109287
holiday_acquisition = context.getCausalityRelatedValue(portal_type='Holiday Acquisition') holiday_acquisition = context.getCausalityRelatedValue(portal_type='Holiday Acquisition')
if 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() employee = context.getSourceSectionValue()
stop_date = context.getStopDate() stop_date = context.getStopDate()
...@@ -24,5 +24,4 @@ holiday_acquisition = context.holiday_acquisition_module.newContent( ...@@ -24,5 +24,4 @@ holiday_acquisition = context.holiday_acquisition_module.newContent(
) )
holiday_acquisition.plan() holiday_acquisition.plan()
return holiday_acquisition.Base_redirect('view', return holiday_acquisition.Base_redirect('view', keep_items={'portal_status_message': context.Base_translateString('Holiday Acquisition is created')})
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