[FIX] pos_sale: always start with the default domain

When opening the sale order management screen, we should always start
with the default domain so that we don't have instances where fully-paid
sale orders show in the screen.

X-original-commit: 5b8cff6a545d1fb3ee614cdd347e0aa463dc8a5e
Part-of: odoo/odoo#95282
This commit is contained in:
Joseph Caburnay
2022-07-05 00:50:52 +02:00
parent 5dca98315a
commit ac4bf1ba5f
@@ -37,9 +37,8 @@ odoo.define('pos_sale.SaleOrderManagementControlPanel', function (require) {
let currentPartner = this.env.pos.get_order().get_partner();
if (currentPartner) {
this.orderManagementContext.searchString = currentPartner.name;
let domain = this._computeDomain();
SaleOrderFetcher.setSearchDomain(domain);
}
SaleOrderFetcher.setSearchDomain(this._computeDomain());
}
onInputKeydown(event) {
if (event.key === 'Enter') {