Skip to content

Commit

Permalink
[FIX] edi_oca: Function for posting messages was renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
etobella committed Oct 14, 2024
1 parent e525bbb commit 43d9b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions edi_oca/models/edi_exchange_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,12 @@ def notify_action_complete(self, action, message=None):
def _notify_related_record(self, message, level="info"):
"""Post notification on the original record."""
if not self.related_record_exists or not hasattr(
self.record, "message_post_with_view"
self.record, "message_post_with_source"
):
return
self.record.message_post_with_view(
self.record.message_post_with_source(
"edi_oca.message_edi_exchange_link",
values={
render_values={
"backend": self.backend_id,
"exchange_record": self,
"message": message,
Expand Down

0 comments on commit 43d9b5e

Please sign in to comment.