Merge pull request #49374 from MarcCon/fix/ignore-permissions

This commit is contained in:
Raffael Meyer
2025-09-02 19:19:27 +02:00
committed by GitHub
3 changed files with 9 additions and 3 deletions

View File

@@ -190,7 +190,10 @@ frappe.ui.form.on("Customer", {
__("Actions")
);
if (cint(frappe.defaults.get_default("enable_common_party_accounting"))) {
if (
cint(frappe.defaults.get_default("enable_common_party_accounting")) &&
frappe.model.can_create("Party Link")
) {
frm.add_custom_button(
__("Link with Supplier"),
function () {