Uncaught TypeError: Cannot read property 'fields' of undefined
at o.get_link_field (table_multiselect.js:137)
at o.set_formatted_input (table_multiselect.js:110)
at o.set_formatted_input (class.js:53)
at o.set_input (data.js:76)
at n (base_input.js:69)
at o.refresh_input (base_input.js:88)
at o.refresh (base_control.js:85)
at init.attach_doc_and_docfields (layout.js:325)
at init.refresh (layout.js:223)
at GridRowForm.render (grid_row_form.js:24)
As communicated, the current frappe form does not support 3 tier doctypes: main doctype-child doctype-grand child doctype, because on backend(python side) the base document.py hard coded the CRUD(Create/Read/Update/Delete) logic for the main doctype’s child records only .
To fix your reported issue, I am trying to create a new LinkMultiSelect base on existing TableMultiSelect.
this new control is derived from Link ,
, the options in doctype definition is same as Link field’s options, no need to create a separate doctype with at least one link field to be created for MultiTableSelect field/control.