Hi,
i have a script in that i have columns that are not allowed to current user’s how to show that column in script report with out changing permission
def get_columns():
# return [_("Item Code") + ":Link/Item:100", _("Item Name") + "::100", _("Description") + "::200",
# _("Item Group") + ":Link/Item Group:100", _("Brand") + ":Link/Brand:100", _("Average Age") + ":Float:100",
# _("Earliest") + ":Int:80", _("Latest") + ":Int:80", _("UOM") + ":Link/UOM:100"]
return [_("Item Code") + ":Link/Item:100", _("Item Name") + "::100", _("Tenant") + ":Link/Tenant:100", _("Warehouse") + ":Link/Warehouse:100",_("Description") + "::200",
_("Batch") + ":Link/Batch:ignore_permission/True:100", _("Average Age") + ":Float:100", _("Available Stock") + ":Float:100",_("Warehouse Section") + ":Data:80",
_("In Bound Date") + ":Date:80", _("Last Movement") + ":Date:80",_("Current Date") + ":Date:80", _("UOM") + ":Link/UOM:100"]
as you can see i added ignore_permission flag on batch link this is the doctype that i don`t have permission.
how to can i ignrore permission programatically
please help.