Hello everyone. I need to create two modules with the same table. The difference is that the 1st module requires editing/updating any data and the 2nd module restricts the user from editing/updating any data. I have already created the editable module using module builder but I do not know how to create the second module without creating another table and use the 1st module’s table. Please help me. How can I achieve this?
This sounds like a job for Security Groups, not duplicated modules. If you set the appropriate roles and permissions, each user (or group) will see and be able to edit only what you want.
Start by getting a set up like this one, then change it to fit your needs:
https://docs.suitecrm.com/user/security-suite-groups/#_a_typical_hierarchy_setup
Thank you for your reply. Indeed, I need security groups for doing this. But then, I need exactly 2 views in this.
If the user is not the admin, the editable module will be hidden.
But if the user is the admin, it will show both editable and not editable modules. I can achieve this using the security groups.
The problem is that I do not know how to create a second module that is connected to the first module’s table.
In short, I need two separate listviews having the same data.
You definitely don’t need “a second module with the same data”, you need a “second list view for the same module”.
Is there any reason why there isn’t only one view, which is
-
read-only for common users
-
editable for admins
Why would the admins need both a read-only and an editable view?