fix: show edit button to manager
This commit is contained in:
parent
fd38f0ac98
commit
4a783fcba8
@ -919,7 +919,7 @@ def get_deals_by_source(from_date="", to_date="", user=""):
|
||||
to_date = frappe.utils.get_last_day(to_date or frappe.utils.nowdate())
|
||||
|
||||
if user:
|
||||
deal_conds += f" AND lead_owner = '{user}'"
|
||||
deal_conds += f" AND deal_owner = '{user}'"
|
||||
|
||||
result = frappe.db.sql(
|
||||
f"""
|
||||
|
||||
@ -14,7 +14,11 @@
|
||||
<LucideRefreshCcw class="size-4" />
|
||||
</template>
|
||||
</Button>
|
||||
<Button v-if="!editing" :label="__('Edit')" @click="editing = true">
|
||||
<Button
|
||||
v-if="!editing && (isManager() || isAdmin())"
|
||||
:label="__('Edit')"
|
||||
@click="editing = true"
|
||||
>
|
||||
<template #prefix>
|
||||
<LucidePenLine class="size-4" />
|
||||
</template>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user