Skip to content

Commit

Permalink
edi_exc_type_auto: fix do not generate if already generated
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Aug 22, 2023
1 parent db6ab38 commit 0434363
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ def _edi_auto_handle_generate(self, info_dict):
target_record = info.get_target_record(self.env)
exc_type = info.get_type(self.env)
exchange_record = self._edi_auto_get_or_create_record(target_record, exc_type)
exchange_record.action_exchange_generate()
if not exchange_record.exchange_file:
exchange_record.action_exchange_generate()
msg = _("EDI auto: output generated.")
trigger_msg = _("Triggered by: %s") % info.triggered_by
# TODO: post changed values in msg?
Expand Down

0 comments on commit 0434363

Please sign in to comment.