changes
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user