Hello. I’ll gladly help but you got to put some effort on asking the question. Just a title and some non formatted code won’t be of help. Read here how to format code using markdown.
From your question I understand you want to call a method. Frappe uses dot notation, every word between the dots you see: frappe.desk.moduleview is probably inside a folder called frappe which is inside a folder named desk inside a file named moduleview.py etc. There’s many examples on the source code.
Thanks for your help. I found the method.I still have a few questions to ask, but I don’t know how you developed it.
I am using remote Docke container development with VScode, but I do not know how to deploy to the client server after development.If, instead of changing the code, I just wrote some scripts, added some fields, and modified the form on my local client server, how to deploy it.thank you
If you wrote scripts, fields, and modified the form without turning on developer_mode to 1, all your changes are contained in the database. You backup the database and restore it to your production server, and everything is there. (You may have to create a New Company, and delete the company you were using when you were developing in your local client server.)
The disadvantage of this approach is, you cannot use your changes in other existing applications.
Another approach is to activate developer_mode to 1.
You create and install a new app into your site.
To preserve the changes you made to the form, and scripts you entered, you can export fixtures (you must know how to specify which changes you will copy to your app).
You can add New DocTypes under your app as the module, and develop the code for the Doctype in your app.
You can then install your app to other sites. This is an overview. We can go into detail if you want to go this route.
To deploy, you backup your development site and restore it to your production site.
All your Customization is stored in the database.
Level 2. You can create a custom-app and export fixtures. This will transfer the code in the database to your custom-app which you can install in other applications.
Level 3. You can develop a custom-app by setting developer_mode to 1. Here you can create DocTypes, Reports, etc.
If you are starting out, I advise doing level 1 first.