How to bound a user for particular company?

suppose i have 4 companies like as:

b
c
d

i have 2 user 

ram
shyam

now i want to bound mr ram with "A" and "B" company only. and Mr. shyam with "C" & "D" company only.

so that they can not see or delete any data other than their companies.


hope it is possible.

Thanks 
Regards
CA Mahaveer Somani



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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

You have to set permissions on each DocType and as appropriate User Properties

http://erpnext.org/docs.user.setup.permissions.html

The best way to do it - what I would personally do - is create a separate database for each company.

thanks,
Rushabh


W: https://erpnext.com
T: @rushabh_mehta

On 19-Sep-2013, at 4:31 PM, Mahaveer Somani <ca...@gmail.com> wrote:

suppose i have 4 companies like as:

b
c
d

i have 2 user 

ram
shyam

now i want to bound mr ram with "A" and "B" company only. and Mr. shyam with "C" & "D" company only.

so that they can not see or delete any data other than their companies.


hope it is possible.

Thanks 
Regards
CA Mahaveer Somani



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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



Note:

 

If you are posting an issue,

  1. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    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.

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