diff --git a/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_action.js b/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_action.js index e0bae4b9..b057cd86 100644 --- a/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_action.js +++ b/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_action.js @@ -87,6 +87,7 @@ odoo.define("account.ReconciliationClientAction", function (require) { this._super.apply(this, arguments); this.action_manager = parent; this.params = params; + this.notifications = params.context.notifications || []; this.searchModelConfig.modelName = "account.bank.statement.line"; this.controlPanelProps.cp_content = {}; this.model = new this.config.Model(this, { @@ -158,6 +159,7 @@ odoo.define("account.ReconciliationClientAction", function (require) { valuemax: self.model.valuemax, defaultDisplayQty: self.model.defaultDisplayQty, title: title, + notifications: self.notifications, }); }); }); diff --git a/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_renderer.js b/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_renderer.js index 0415a040..26146f76 100644 --- a/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_renderer.js +++ b/account_reconciliation_widget/static/src/js/reconciliation/reconciliation_renderer.js @@ -38,6 +38,9 @@ odoo.define("account.ReconciliationRenderer", function (require) { var defs = [this._super.apply(this, arguments)]; this.time = Date.now(); this.$progress = $(""); + if (this._initialState.notifications.length > 0) { + this._renderNotifications(this._initialState.notifications); + } return Promise.all(defs); },