Im trying to add purchase receipt for my supplier portal page but getting this error
my portal settings page.
I even tried adding just /purchase-receipt in the route field but it is not working
and tried app/purchase-receipt but its showing permission error
so I tried to set the permission using role-permission manager.
but still it didnt even work.
Can anyone please help me to deal with this issue…?
Thank You
NCP
March 12, 2024, 3:36pm
2
Hi @Mohammed_Anas1 ,
You have to make a custom portal page for that.
Here pre-define the portal page:
You have to add a Custom Menu Item and make the portal page.
Please check it.
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe import _
from frappe.utils import flt
def get_context(context):
context.no_cache = 1
context.show_sidebar = True
context.doc = frappe.get_doc(frappe.form_dict.doctype, frappe.form_dict.name)
if hasattr(context.doc, "set_indicator"):
context.doc.set_indicator()
context.parents = frappe.form_dict.parents
context.title = frappe.form_dict.name
if not frappe.has_website_permission(context.doc):
This file has been truncated. show original
I hope this helps.
Thank You!
@NCP So i have added purchase receipt in portal page i need to di the html and python coding in backend to achieve it…?