From 43d9b5e1b02f10072ef9af51c755b029a9c62766 Mon Sep 17 00:00:00 2001 From: Enric Tobella Date: Mon, 14 Oct 2024 12:26:35 +0200 Subject: [PATCH] [FIX] edi_oca: Function for posting messages was renamed --- edi_oca/models/edi_exchange_record.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edi_oca/models/edi_exchange_record.py b/edi_oca/models/edi_exchange_record.py index 8003c86b7..aa48c39be 100644 --- a/edi_oca/models/edi_exchange_record.py +++ b/edi_oca/models/edi_exchange_record.py @@ -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,