About exception

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.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/V-so8pYBHNQJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Hi Gangadhar,

In Permission Manager, select Customer and set condition for "Sales Master Manager" based on "Creator of Document".

Steps to Follow:

  1. Setup >> Permission Manager
  2. Select Customer.
  3. In Roles table, click on Condition for Role "Sales Master Manager".
  4. To restrict based on Owner, check second option which is called "The user is the creator of the document."

Hope this helps.

--
Thanks and Regards,
Umair Sayyed
www.erpnext.com


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.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/V-so8pYBHNQJ.

For more options, visit https://groups.google.com/groups/opt_out.












You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

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.


Regards,
Gangadhar kadam

On 4 March 2013 14:46, Umair Sayyed <um...@iwebnotes.com> wrote:
Hi Gangadhar,

In Permission Manager, select Customer and set condition for "Sales Master Manager" based on "Creator of Document".

Steps to Follow:
  1. Setup >> Permission Manager
  2. Select Customer.
  3. In Roles table, click on Condition for Role "Sales Master Manager".
  4. To restrict based on Owner, check second option which is called "The user is the creator of the document."

Hope this helps.

--
Thanks and Regards,

Umair Sayyed
www.erpnext.com



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.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/V-so8pYBHNQJ.

For more options, visit https://groups.google.com/groups/opt_out.











You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Dear Gangadhar,

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.

Regards,
Gangadhar kadam 

On 4 March 2013 14:46, Umair Sayyed <um...@iwebnotes.com> wrote:
Hi Gangadhar,

In Permission Manager, select Customer and set condition for "Sales Master Manager" based on "Creator of Document".

Steps to Follow:
  1. Setup >> Permission Manager
  2. Select Customer.
  3. In Roles table, click on Condition for Role "Sales Master Manager".
  4. To restrict based on Owner, check second option which is called "The user is the creator of the document."

Hope this helps.

--
Thanks and Regards,

Umair Sayyed
www.erpnext.com



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.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/V-so8pYBHNQJ.

For more options, visit https://groups.google.com/groups/opt_out.

 

 








You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune

SAVE TREES - Please consider the environment before printing this email.
SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping  prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 




You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

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

Regards,
Gangadhar kadam

On 4 March 2013 17:01, Anand Doshi <an...@iwebnotes.com> wrote:
Dear Gangadhar,

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.

Regards,
Gangadhar kadam

On 4 March 2013 14:46, Umair Sayyed <um...@iwebnotes.com> wrote:
Hi Gangadhar,

In Permission Manager, select Customer and set condition for "Sales Master Manager" based on "Creator of Document".


Steps to Follow:

  1. Setup >> Permission Manager
  2. Select Customer.
  3. In Roles table, click on Condition for Role "Sales Master Manager".
  4. To restrict based on Owner, check second option which is called "The user is the creator of the document."

Hope this helps.

--
Thanks and Regards,

Umair Sayyed
www.erpnext.com



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.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/V-so8pYBHNQJ.

For more options, visit https://groups.google.com/groups/opt_out.












You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,

New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,
New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.

 

 

Gangadhar,

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

Regards,
Gangadhar kadam

On 4 March 2013 17:01, Anand Doshi <an...@iwebnotes.com> wrote:
Dear Gangadhar,

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.

Regards,
Gangadhar kadam

On 4 March 2013 14:46, Umair Sayyed <um...@iwebnotes.com> wrote:
Hi Gangadhar,

In Permission Manager, select Customer and set condition for "Sales Master Manager" based on "Creator of Document".


Steps to Follow:

  1. Setup >> Permission Manager
  2. Select Customer.
  3. In Roles table, click on Condition for Role "Sales Master Manager".
  4. To restrict based on Owner, check second option which is called "The user is the creator of the document."

Hope this helps.

--
Thanks and Regards,

Umair Sayyed
www.erpnext.com



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.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/V-so8pYBHNQJ.

For more options, visit https://groups.google.com/groups/opt_out.












You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,

New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--
Thanks & Regards,
Mr.Gangadhar N.Kadam.
Cell: +91 9960066444
Software Engineer,

New Indictrans Technologies Pvt. Ltd., Pune


P SAVE TREES - Please consider the environment before printing this email.

SAVE ENERGY - My monitor is off whenever I am away from my desk. I am helping prevent global warming by reducing consumption of power... ARE YOU?



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

To post to this group, send email to er…@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.







--



Twitter: @rushabh_mehta



You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un...@googlegroups.com.

To post to this group, send email to er...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.