#17503·frappe

Child table of another child table

Author: nev-21Created Jul 13, 2022Updated Sep 28, 2026

Description of the issue

Can't use a child doctype inside another child doctype. Inside a parent document I click edit button in boxes grid, and i can’t edit it ( because the child table has a Table field).

Context information (for bug reports)

Frappe 13.34.0 Frappe 14.0.0-beta.4

https://user-images.githubusercontent.com/89469783/178801717-11267424-ec6d-4578-aa3d-59b15a4f37d4.mov

Output of bench version

bench does not throw nothing

Steps to reproduce the issue

  1. Create one parent doctype (Pallet)
  2. Create two child table doctypes (Box and products)
  3. One Pallet have many boxes, add Table field to Pallet doctype with options "Box"
  4. One Box have many products, add Table field to Box doctype with options "product"
  5. create a Pallet document, in boxes table, add a row, and then click on edit

Observed result

Cant open sub-form of the child-table when the child-table has another child-table field.

Expected result

allow to open the sub-form and then edit the sub child table field list.

Stacktrace JAVASCRIPT / full error message

javascript
Uncaught TypeError: Cannot read properties of undefined (reading 'allow_bulk_edit')
    at Grid.setup_allow_bulk_edit (grid.js:932:58)
    at Grid.make (grid.js:127:8)
    at Grid.refresh (grid.js:328:25)
    at ControlTable.refresh_input (table.js:112:13)
    at ControlTable.refresh (base_control.js:113:12)
    at Layout.attach_doc_and_docfields (layout.js:410:59)
    at Layout.refresh (layout.js:283:8)
    at GridRowForm.render (grid_row_form.js:28:15)
    at GridRow.show_form (grid_row.js:1083:18)
    at GridRow.toggle_view (grid_row.js:1069:9)

Additional information

Discuss: https://discuss.erpnext.com/t/child-table-of-a-child-table/92008?u=nev-21