This commit is contained in:
gsinghpal
2026-04-02 17:55:32 -04:00
parent f715570e0c
commit 1c560c6df2
5 changed files with 87 additions and 8 deletions

View File

@@ -199,12 +199,23 @@ export class WooDashboard extends Component {
type: "ir.actions.act_window",
name: "Sync Errors (Last 24 h)",
res_model: "woo.sync.log",
view_mode: "list,form",
views: [[false, "list"], [false, "form"]],
domain: [["state", "=", "failed"]],
target: "current",
});
}
async clearErrors() {
const count = await rpc("/web/dataset/call_kw", {
model: "woo.sync.log",
method: "action_clear_errors",
args: [],
kwargs: {},
});
this.state.errors24h = 0;
this.notification.add(`${count} error log entries cleared.`, { type: "success" });
}
openConflicts() {
this.actionService.doAction("fusion_woocommerce.action_woo_conflict");
}