Files
gzth/soong_workflow/static/src/js/view_button.js
T
2026-01-18 16:03:06 +08:00

16 lines
408 B
JavaScript

/** @odoo-module **/
import { ViewButton } from "@web/views/view_button/view_button";
import { patch } from "@web/core/utils/patch";
const WKF_BTN = "btn_exec_action";
patch(ViewButton.prototype, {
getClassName() {
const { className, clickParams } = this.props;
if (clickParams?.name !== WKF_BTN) {
return super.getClassName();
}
return className;
}
});