Please give any answer

hello every one i want to make a fields read only in purchaes order but from supplier end when supplier login and create puchares order so his name field readonly.

@Divakar_Jadoun1 If the Purchase Order form is a Web Form, you can do that by customizing the form and adding a Client Script.

Client Script Example

Replace “fieldname” with supplier name fieldname from Purchase Order form

frappe.web_form.after_load = () {
    if (frappe.user.has_role('Supplier')) {
        frappe.web_form.set_df_property('fieldname', 'read_only', 1);

we can use this from customization.
eval:frappe.user_roles.filter(role => role === ‘Supplier’) && frappe.session.user !== ‘Administrator’

read only text