Testing Site URL: https://gh-imp-2021-00887.castlecraft.co.in
Pull Request URL: https://github.com/frappe/frappe/pull/13995
Pull Request Title: fix: Dashboard Chart to support Child Table Doctype.
Pull Request Description:
ISSUE: If we select a Child Table Doctype in Dashboard Chart for e.g. Sales Invoice Item. Filter for that Dashboard Chart doesn't work.
SOLUTION:
Added a new field parent_document_type
in Dashboard Chart which will be visible if document_type
selected is a child table.
Filter was not working because for the selected document_type
read permissions were checked and for the child table we do not have any permissions, Now we can use parent_document_type
to check read permission.
Before:
After:
Credentials
username: gbarber@cantrell.com
password: 429843f01f