Skip to content

Commit

Permalink
Merge PR #113 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by etobella
  • Loading branch information
OCA-git-bot committed Oct 14, 2024
2 parents e525bbb + 43d9b5e commit 5c8f766
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 5c8f766

Please sign in to comment.