I try to add a new DocType (checked as “is Child Table”) as a field (type Table) into the Sales Order Item Doctype.
The result is : it’s broken.
The detail form of Sales Order Item do not display anymore, error in js part.
I’ve dig into frappe framework and see that’s it’s not currently supported, not explicitly, but just not coded to be possible.
In layout.js and gris.js, it make a mix up on the refresh() method about this new field (set as parent of this new field the grand parent doctype)
My question is, should I propose a PR to avoid this try of design in frappe ?
This kind of control already exists for other not logical design.
This one can be “logic” but not possible for now.
But may be I’ve miss something in my customization ? Didn’t find any clues in documentation, but only not answered post in this forum
Did you manage to make something possible with this use case ?
Like use a HTML field (instead of try the type table field with child table doctype ) and populate it with your own code (with embedded datatable for example)?
I think that the root problem is that from .js side we need to use John Resig JS microtemplating, and from server side we use Jinja2. Pretty the same thing, but not exactly the same thing There are some differences in syntax, Jinja is python-like, and JR microtemplating is like javascript …
I was confused with this, and not totally sure about what I am talking about