Skip to content

Commit f1647ba

Browse files
author
Taois
committed
update: odoo command
1 parent 2ea0564 commit f1647ba

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

public/monkey/clipboard-sender.user.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// @match https://connect.huaweicloud.com/*
1010
// @match https://*.huaweicloud.com/*
1111
// @match https://*.iconfont.cn/*
12+
// @match https://*.ziwierp.cn/*
1213
// @run-at document-end
1314
// @grant GM_xmlhttpRequest
1415
// @grant GM_setClipboard
@@ -3480,6 +3481,9 @@
34803481
window.commandSelector = commandSelector;
34813482
}
34823483
commandSelector.toggle();
3484+
if (commandSelector.visible) {
3485+
commandSelector.updateCommandButtons();
3486+
}
34833487
if (btnEl) {
34843488
btnEl.style.borderStyle = commandSelector.visible ? 'inset' : 'outset';
34853489
}

public/monkey/odoo-field-getter.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function getFieldInfo(name) {
2+
const $label = $(`label:contains("${name}")`);
3+
return $label.find('sup').attr('data-tooltip-info')
4+
}
5+
6+
getFieldInfo('类别代码');

0 commit comments

Comments
 (0)