16 lines
408 B
JavaScript
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;
|
|
}
|
|
}); |