Add views to documents like POS

Hello ,
how do i get the name of doc in .py file?


User list contains :


when i click on Jack
its redirect my to page and its contain html
and says "Welcome Jack ! "

Try frappe.get_list. Have you read the developer guide:


You will have to customize your own list.

The kind of designs you are changing are highly unrecommended and will surely break upgrades. I hope your client knows what they are doing.

Ok my true scenario
i created doc type
in Order list i made my modification to fit the requirement as normal ,
now the order element it self i want to change the view of it (like POS in erpnext )
so in i need to get which element selected from the order list ?
which command do i use in the

sorry for the bad example

What iam trying to achieve is when i click on the element

it get me to the page of it so i can get its info

What you are trying to do is again using non-standard layouts and these are all likely to break.

You can add a new “view” to the form and do this. Check:

The philosophy of ERPNext is to use highly standardized views as much as possible and I would not recommend you going that path.

1 Like