Skip to content

Commit

Permalink
edi: fix _edi_send_via_edi w/ quick exec
Browse files Browse the repository at this point in the history
When quick exec is on there's no need to call generate and send
  • Loading branch information
simahawk committed Dec 15, 2024
1 parent f66dc81 commit db56210
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion edi_oca/models/edi_exchange_consumer_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ def _edi_send_via_edi(self, exchange_type, backend=None, force=False, **kw):
exchange_record = self._edi_create_exchange_record(
exchange_type, backend=backend
)
if exchange_record:
# If quick exec is on, `exchange_generate_send` already ran
if exchange_record and not exchange_type.quick_exec:
exchange_record.action_exchange_generate_send(**kw)

# TODO: full unit test coverage
Expand Down

0 comments on commit db56210

Please sign in to comment.