I have to restrict the access of customer if the customer is not created by him. he should be able to search all customer (list) , but if click on customer then only his created customers details should be displayed. I have to do this on my local setup. I have wrote the custom onload script for customer doctype and checked the ownership , but not able to close the current doctype or exit. is there any client site method for doctype close or exit or exception.
Thank you all.
Regards,
Gangadhar kadam
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
On Mon, Mar 4, 2013 at 2:34 PM, gangadhar kadam <em...@gmail.com> wrote:
Hello All,
I have to restrict the access of customer if the customer is not created by him. he should be able to search all customer (list) , but if click on customer then only his created customers details should be displayed. I have to do this on my local setup. I have wrote the custom onload script for customer doctype and checked the ownership , but not able to close the current doctype or exit. is there any client site method for doctype close or exit or exception.
Thank you all.
Regards,
Gangadhar kadam
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
As per my knowledge it will restrict customer created by others will not be visible nor customer details. I want to restrict only details. any one can see all customer list. but the customer details should not be accessible to only owner.
On Mon, Mar 4, 2013 at 2:34 PM, gangadhar kadam <em…@gmail.com> wrote:
Hello All,
I have to restrict the access of customer if the customer is not created by him. he should be able to search all customer (list) , but if click on customer then only his created customers details should be displayed. I have to do this on my local setup. I have wrote the custom onload script for customer doctype and checked the ownership , but not able to close the current doctype or exit. is there any client site method for doctype close or exit or exception.
Thank you all.
Regards,
Gangadhar kadam
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
You can make a query report to get a list of all customers. That way, you will have a list of all customers, but the user will be able to view/edit only those records which he/she is permitted to see.
Thanks,
Anand.
On 04-Mar-2013, at 4:34 PM, गंगाधर कदम <em...@gmail.com> wrote:
Thank you Sir,
As per my knowledge it will restrict customer created by others will not be visible nor customer details. I want to restrict only details. any one can see all customer list. but the customer details should not be accessible to only owner.
On Mon, Mar 4, 2013 at 2:34 PM, gangadhar kadam <em…@gmail.com> wrote:
Hello All,
I have to restrict the access of customer if the customer is not created by him. he should be able to search all customer (list) , but if click on customer then only his created customers details should be displayed. I have to do this on my local setup. I have wrote the custom onload script for customer doctype and checked the ownership , but not able to close the current doctype or exit. is there any client site method for doctype close or exit or exception.
Thank you all.
Regards,
Gangadhar kadam
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
You can make a query report to get a list of all customers. That way, you will have a list of all customers, but the user will be able to view/edit only those records which he/she is permitted to see.
Thanks,
Anand.
On 04-Mar-2013, at 4:34 PM, गंगाधर कदम <em...@gmail.com> wrote:
Thank you Sir,
As per my knowledge it will restrict customer created by others will not be visible nor customer details. I want to restrict only details. any one can see all customer list. but the customer details should not be accessible to only owner.
On Mon, Mar 4, 2013 at 2:34 PM, gangadhar kadam <em…@gmail.com> wrote:
Hello All,
I have to restrict the access of customer if the customer is not created by him. he should be able to search all customer (list) , but if click on customer then only his created customers details should be displayed. I have to do this on my local setup. I have wrote the custom onload script for customer doctype and checked the ownership , but not able to close the current doctype or exit. is there any client site method for doctype close or exit or exception.
Thank you all.
Regards,
Gangadhar kadam
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
One solution is to create a partner Custom Field in the Customer table and then "match" (using Restrict By) the permissions based on the Partner value.
best,
Rushabh
On Mon, Mar 4, 2013 at 7:33 PM, गंगाधर कदम <em...@gmail.com> wrote:
Thank you Sir,
The scenario is
1) I have one role partner who have permission to create,edit permission for customer .
2) partner creates order , in order there is link for customer for this link should display all customer.
3) In customer doctype if he search for customer all customer should be listed
4) If partner try to open customer created by other partner it should display error message like no permission to read. how to achieve this
You can make a query report to get a list of all customers. That way, you will have a list of all customers, but the user will be able to view/edit only those records which he/she is permitted to see.
Thanks,
Anand.
On 04-Mar-2013, at 4:34 PM, गंगाधर कदम <em...@gmail.com> wrote:
Thank you Sir,
As per my knowledge it will restrict customer created by others will not be visible nor customer details. I want to restrict only details. any one can see all customer list. but the customer details should not be accessible to only owner.
On Mon, Mar 4, 2013 at 2:34 PM, gangadhar kadam <em…@gmail.com> wrote:
Hello All,
I have to restrict the access of customer if the customer is not created by him. he should be able to search all customer (list) , but if click on customer then only his created customers details should be displayed. I have to do this on my local setup. I have wrote the custom onload script for customer doctype and checked the ownership , but not able to close the current doctype or exit. is there any client site method for doctype close or exit or exception.
Thank you all.
Regards,
Gangadhar kadam
–
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.