hi ,
i want to link Doctype Account to it self
so i can choose docname,and get some fields from that docname i selected via link ?
Yes, you link a doctype recursively. Here’s an example:
/desk#Form/DocType/Account
The 10th row. Look at it in this screenshot too!
Thank You for the fast comment, i tried it to see the shown_number for the field linked … it show nothing !!!
Check to see if the field is showing (the Parent Account Number
), if so,
did you set any value to the Show Number
field in the parent account?
yes , i set shown_number then i try , could you try it on your erpnext … if it works or not ?
Remember that the system will do the fetch when the Link field changes. In other words, the Link field (Parent Account
field) will trigger the fetch. So, you will have to change the value of that field for every child account.
You can see it working on https://demo.erpnext.com
I could replicate your request in my end and it seems that I doesn’t work in the popup window (prompt view). So, you got two options:
-
Create them and re-set the value of the Parent Account field to trigger the fetch (this will be done in the default view).
-
Or raise an issue in the repository and wait to for a fix for this.
if i only could trigger a sql of frappe.call inside the account_tree.js file
in this line
fields: [
{fieldtype:‘Data’, fieldname:‘parent_account_number’, label:__(‘Parent Account Number’),defualt="the shown number variable "}
thank you so much for your help yefritavarez
@geekroot Any thoughts?