[14.0][FIX] account_reconciliation_widget: progressbar width

Some changes in Odoo 14.0 JS execution flow makes setting progressbar width in do_show not working properly
This commit is contained in:
Francisco Ivan Anton Prieto
2021-04-21 13:27:00 +02:00
parent 1e17868cd9
commit 5d4352d2b6

View File

@@ -244,13 +244,14 @@ odoo.define("account.ReconciliationClientAction", function (require) {
$pager: this.$pager, $pager: this.$pager,
}; };
this.renderer.$progress = this.$pager; this.renderer.$progress = this.$pager;
$(this.renderer.$progress)
.parent()
.css("width", "100%")
.css("padding-left", "0");
} }
}, },
on_attach_callback: function () {
this._super.apply(this, arguments);
$(this.$pager).parent().css("width", "100%").css("padding-left", "0");
},
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// Private // Private
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------