How to write groups for a delete comes under action menu odoo? - odoo

I need to write groups for a delete button under action menu in sale order form. This group is for to show if group is enabled then delete button will be shown or else it remains invisible.
I don't know how to make it. Could anyone help me here?

you can do it by access rights. Here is elaborated example.
Suppose if you have to remove the delete option from the purchase order for the users purchase user, then what you have to do is that, activate developer mode, then go to the menu, Groups under the settings, then search the group purchase user. Open it, then in the access rights tab, you can see different objects and given permission.

Related

SharePoint List Item View/Read Permission

I am actually new to SharePoint permissions stuff. I really need someone help to guide me or give me a hint.
I have a SharePoint 2013 list, with items. User create a item using Nintex forms and when item is created, Nintex Workflow get trigger.
The idea behind this list is, User A will create a item then User B will review it and approve/reject.
After User A create item, item permission should change to 'Read' so that user A doesn't change any value of item until user B take some action.
In Workflow, I am changing the item permission using 'Set Item Permission' action and setting permission as Read.
But the problem is after
1) User A created item, he is not able to view/read item but able to edit item.
I selected item through list and click on 'view item' through ribbon, I am getting error 'Sorry, you don't have access to his page'.
I clicked on eclipse of item, selected Shared with->ADVANCED I am seeing the user A have view/read permission.
Then I made sure through 'Workflow history' if action got executed or not, it seems action got executed successfully.
This is really weird how user is able to edit item but not able to view item?
I really appreciate if anyone can provide any hint or help to make item readable.
Can you click on the list item, and check permissions for that item. You can click on Shared With -> Advanced. Then from the ribbon choose Check permissions. Enter the User A name and see what permissions he has.
And if he has more than Read, it means workflow has not finished its job. So check the workflow. It should break any inheriting permissions on that list item and then set unique permissions for only User B. This will take away the permissions from User A.
A second approach would be to make a form status column and connect it to submit button.
Return a value eg. Submitted to the column once the form is submitted by A.
Now in nintex form designer,select the control and add rule to disable the control if form status == "Submitted".

Seeing report filters in other account of odoo?

I added a user to my Odoo. I want this user to see the reports filter! But I couldn't find out how to!! Here is the difference between my account and his account. He is my supervisor, So I must give him the permission to see what I see
Click button shown in below image. Filter will appear.

Modify menus shown to Portal users Odoo/Openerp

What I want to do is this:
When a new user is given access to the Portal, I want her only to be able to see a single Sales menu with a submenu Sales/Customers and nothing else.
I was able to do that by adding the menu to the Portal group, but I need to hide the other menus (Website,Mail,Projects). I removed all the other views from Portal group and made sure that my customer does not belong to any other group than Portal but the menus are still there.
From what I can understand the menus are shown only to certain groups of users. My user only belongs to the Portal group these menus are not referenced there. I only have my Sales/Customer there
How can I remove them?
Out-of-box odoo is designed to show all those menu as portal menu, so what you want todo here is create new group with portal check-box true and assigned all menu you wnat him to see and assign needed security. Designing this group be bit lazy as you will have todo lot of trails.
Bests

Prevent User from editing list item from UI in sharepoint

I have requirement to prevent users from editing a list item through UI.
I want to edit item only through programmatic way.
I want to prevent them from editing items from default edit page of the list.
Any suggestion are grateful...
Sharepoint permissions will even stop the user from editing the items programatically. (unless runwithelevatedprivileges is used). Another solution would be to hide [edit item] option using javascript.
You can do with SharePoint permissions.
Navigate to Site Actions > Site Permissions and select the user (they might be part of a SharePoint group, so check inside them too). Check the check box next to the user name and select Edit User Permissions from the ribbon. Then ensure that View Only and Read check boxes are checked for that specific user.
Hope this helps!

InfoPath 2010, SharePoint 2010

I have created an InfoPath 2010 form which is published to doc library in SharePoint 2010. I want for this form to become read-only ie once it has been submitted.
None of what I have done so far seems to work. I have:
Created a new view and re-named it to Read-Only and in its properties I have ticked
the "Read-Only" check box in InfoPath.
I have a "Submit Form" button and in here I have added rules for submitting the form,
switching the view to the read-only view.
To test this I fill out the form with sample data and submit it, then when I go to
the doc library where the forms gets submitted to when I open the submitted form I
find that the Read-Only view has not taken effect and that it is still possible to
edit the form.
Ideally what I am trying to achieve is to have the submitted forms turned into read-only when they are submitted and still be in read-only mode when these are opened from the document library where they get submitted to.
Any ideas where I'm going wrong with this? if there is a better and simpler way to achieve this please let me know.
Thanks in advance.
It might be too late to answer this question, but if someone is still looking for an answer you could try the below steps
Before you begin please verify that you have one of the following permissions:
a. You are a member of the Administrators group for the site collection.
b. You are a member of the Owners group for the site.
c. You have the Manage Permissions permission.
On the Site Settings page, Go to the Users and Permissions and look for settings
Under Settings you will be able to see Permission Levels
Select Add a Permission Level
Give a Name to you new Permission Level
Under the Select the Permissions to include to this permission level, select the Add Items and View Items Permissions to this group.
After the group is created, for your form library, stop inheriting the permissions from the parent site and create a new group with the new Permission Level that you just created. Add all the users to the group.
This should enable the users to submit a form but not edit it. Hope this helps.
There is an easier way to solve this. Create two views of this form on InfoPath Designer. And make sure when the form is submitted, the view is flipped to the Read-Only view; which has the salient feartures of the form such as the answers you would like to be recorded.
So anyone who opens the form once submitted wil only see the Read-Only view. You can set a rule on the form to have an administrator see a Edit mode.
I just went through this. the submit rule doesn't work, you have to create a form load rule. In the file toolbar, you'll see a form load button in the rules block.