How can I customize single DocTypes?

Bulk Salary Structure Assignment i want to add filed in it?


i want to add Quick Filters here?
i could not use [Customize Form] what could i use?

Single Doctypes cannot be customized, you can duplicate this doctype and make your changes as per your need.

1 Like

I followed your advice, but now, when I search for the bulk salary structure assignment, I want to get the custom document type instead of the basic document type. @ejaaz

Search for your custom doctype name in the Awesome Search bar.

I want when anyone searches for “Bulk Salary Structure Assignment”
they get “Custom Bulk Salary Structure Assignment” not “Bulk Salary Structure Assignment”
this is what I want i want to like that I edit in the doctype itself not create a new one

If you make changes to the “Bulk Salary Structure Assignment” Doctype, you will lose your changes after updating your HR app, and you will have to make the same changes again every time you update the HR app.

I know that I want to appear for end users like edit but I create a new one
I want to do like override the class i want to override the doctype at all I create
new now but I want to call it by the existing name
this is just what I want to do
I effectively communicated my point, @ejaaz ?

Previously you said that you are making changes to the existing doctype; that’s why I said that. Sorry for the misunderstanding.

It is not possible to create two doctypes with the same name in Frappe. You could create a new one and name it “Advance Bulk Salary Structure Assignment”(It is just a suggestion).

Yes :blush:

sorry i said that

i want to appear like that I edit in the doctype itself not create a new one

i knew this
i want when i Search for "Bulk Salary Structure Assignment in the Awesome Search bar the route take me to “Custom Bulk Salary Structure Assignment” this what i want do

You can use a hack, override the doctype JS file of Bulk Salary Structure Assignment, and write redirect code in the onload function, so whenever users go to Bulk Salary Structure Assignment, it will redirect them to your custom Doctype.

onload(frm){
	// redirect code here
},
1 Like

i will try this thx @ejaaz

First you have to change the name Bulk Salary Structure Assignment to Default BSSA from the below setting.

Now “Custom Bulk Salary Structure Assignment” to “Bulk Salary Structure Assignment”

So when the user searches the Bulk Salary Structure Assignment then it will redirect with your custom doctype without the code :wink:

3 Likes

Wow, Nice trick, @NCP You are the GOAT(Greatest Of All Time) :smile: :grin:

1 Like

Out of the Box, amazing @NCP