Commit 925f6dae authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_accounting_l10n_fr: Consider that FEC export may be done by an Alarm.

parent 802ff5f8
......@@ -5,11 +5,9 @@ if group_by in ('ledger', 'portal_type_ledger') and ledger is None:
return context.Base_redirect('view', keep_items=dict(
portal_status_message=translateString("At least one Ledger must be selected")))
# Only for ERP5Site_notifyReportComplete after aggregating all the Journals
person_value = portal.portal_membership.getAuthenticatedMember().getUserValue()
if person_value is None:
portal.changeSkin(None)
return context.Base_redirect('view', keep_items=dict(
portal_status_message=translateString("No person found for your user")))
user_name = person_value.Person_getUserId() if person_value is not None else None
tag = 'AccountingTransactionModule_viewFrenchAccountingTransactionFile'
aggregate_tag = '%s:aggregate' % tag
......@@ -26,7 +24,7 @@ context.activate().AccountingTransactionModule_viewFrenchAccountingTransactionFi
group_by,
simulation_state,
ledger,
user_name=person_value.Person_getUserId(),
user_name=user_name,
tag=tag,
aggregate_tag=aggregate_tag)
......
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