FSN#41294 AiAi bij Clone report->KIBE moet geen clone knop hebben

svn path=/Website/branches/v2017.1/; revision=34679
This commit is contained in:
Jos Groot Lipman
2017-07-20 07:45:11 +00:00
parent 4421706f29
commit f4dd7e5dff
2 changed files with 3 additions and 2 deletions

View File

@@ -27,7 +27,8 @@
},
"show": {
requires: { js: ["./fac_reportx.js"] },
buttons: show_buttons
buttons: show_buttons,
no_clone: S("fac_usrrap_mode") != 1
},
"edit": {
requires: { js: ["./fac_reportx.js"] }

View File

@@ -225,7 +225,7 @@ function scaffolding_show(model, scf_params)
if (user.has("WEB_FACFAC") && model["REST_POST"])
buttons.push({ title: L("lcl_scf_export"), action: "scf_export()", icon: "fa-download" });
if (key > 0 && model["REST_POST"])
if (key > 0 && model["REST_POST"] && !scf_params.show.no_clone)
buttons.push({ title: L("lcl_scf_clone"), action: "scf_clone()", icon: "copy.png" });
if (key > 0 && cnt > 0)