Dashboard multiple child tables

Hi,

I have a custom doctype Loopcheck with multiple child tables.
When I create new link field in childtable-01 called fault_reports, linked to doctype fault_reports, the dashboard on fault_reports works well.

But as soon as I create the same field in childtable-02, also called fault_reports linked to the same doctype, this is not picked up by the code below.

from __future__ import unicode_literals
from frappe import _

def get_data():
        return {
                'fieldname': 'fault_reports',
                'transactions': [
                        {
                                'label': _('Loopcheck'),
                                'items': ['Loopcheck']
                        }
                ]
        }

Is there any way how to achieve that no matter to what child table I link the fault_report doctype, the dashboard will pick it up?

Thanks a lot :slight_smile:

1 Like