I have a doctype that uses a child doctype with fields code and description.
The child doctype has a title set to description, so when I select an item from the parent doctype I can see the code an description and the parent_description field saves description value from child table.
The problem is that I want another field in the parent doctype called parent_code. This field links and fetchs from child table using the code field. So when I select the description in the parent_description field, the code is fetch for the parent_code field. The problem is that as I am using title for child table, I don’t see the code but the description field in the parent_code field. How can I solve this?
(I want the code in the parent table to be used for naming)