Commit 292c7cef authored by Arnaud Fontaine's avatar Arnaud Fontaine

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

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