diff --git a/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js b/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js index ebccab50..cf6d222d 100644 --- a/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js +++ b/fusion-woo-odoo/fusion_woocommerce/static/src/js/product_mapping.js @@ -298,7 +298,7 @@ export class ProductMapping extends Component { this.notification.add("Select an instance first.", { type: "warning" }); return; } - await this.actionService.doAction({ + this.actionService.doAction({ type: 'ir.actions.act_window', res_model: 'woo.category.filter', views: [[false, 'form']], @@ -306,11 +306,13 @@ export class ProductMapping extends Component { context: { default_instance_id: this.state.instanceId, }, + }, { + onClose: async () => { + await this._loadExcludedCategoryCount(); + this.state.unmatchedOdooPage = 1; + await this._loadOdooProducts(""); + }, }); - // Reload after wizard closes - await this._loadExcludedCategoryCount(); - this.state.unmatchedOdooPage = 1; - await this._loadOdooProducts(""); } async toggleCategoryFilter() { @@ -482,6 +484,10 @@ export class ProductMapping extends Component { default_instance_id: this.state.instanceId, default_odoo_product_id: odooProductId, }, + }, { + onClose: async () => { + await this._refreshAll(); + }, }); }