[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:
+1
-2
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user