[FIX] sale: fix concurrency issue
Preparing the sales catalog to odoo 17 release:
- some functional additions/improvements:
- fix the concurrency bug of removing items with the "Remove"
button not happening sometimes
task-3367295
Part-of: odoo/odoo#126796
This commit is contained in:
committed by
Valentin Chevalier
parent
cf519d2767
commit
a1a0c2f522
@@ -49,11 +49,6 @@ export class ProductCatalogKanbanRecord extends KanbanRecord {
|
||||
product_id: this.env.productId,
|
||||
quantity: this.productCatalogData.quantity,
|
||||
});
|
||||
// Force a reload of the page to remove a product from the view in the case a filter is
|
||||
// applied.
|
||||
if (this.productCatalogData.quantity === 0) {
|
||||
this.props.record.model.load();
|
||||
}
|
||||
this.productCatalogData.price = parseFloat(price);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user