تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
662 أدوات العرض

Hi,
we are using Odoo for creating offers and invoices for our band. To avoid always updating multiple calendars, we want the other musicians to have read-only access to the list with the confirmed sales ( = gigs/concerts). They should not be able to edit, delete or view/create invoices. Only read the confirmed offers in the Odoo app.

I found about the developer mode and the user groups, but this goes a little beyond my Odoo knowledge. ;) 

I'd be grateful for somebody helping me. Thank you so much!

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Hi,

thank you! I did as @Arian Shariat mentioned. But when I login to the app with that user, the sales app is not shown, unfortunately. Any ideas?

الصورة الرمزية
إهمال

You might need to add it in the menu's tab or inherit group
Probably an easier option might me to modify the sales : Own document group (If this group isn't being used for any user) to set the access to read only for sale order

أفضل إجابة

First Enable Developer Mode.
- Go to Settings > Users & Companies > Groups.

- Click on the "Create" button to create a new group.

- Name the group (e.g., "Read-Only Musicians").


- In the new group form, go to the "Access Rights" tab.


- Add the necessary models for the group to access. Since you want them to view confirmed sales, you’ll need to configure access Click on "Add a line" and select the "Sales Order" (or "Sale Order") model.

 the appropriate sale order model (e.g., sale.order).


- Set the access rights to "Read" only.


- Ensure that they do not have permissions to create, write, or delete records.


- Go to Settings > Technical > Security > Record Rules.


- Click on the "Create" button to create a new rule.


- Name the rule (e.g., "Read-Only Confirmed Sales").


- Set the "Object" to "Sales Order" (or sale.order).


- In the "Domain" field, set a filter to only show confirmed sales. For example, you can use [('state', '=', 'sale')] if the state 'sale' represents confirmed sales in your setup.


-  Apply this rule to the new group you created by selecting the "Read-Only Musicians" group.


- Go to Settings > Users & Companies > Users.


- Edit the user profiles of the musicians and add them to the "Read-Only Musicians" group.


- Ensure that these users do not belong to any groups that would give them higher permissions on the sales orders.




الصورة الرمزية
إهمال
أفضل إجابة

Hi, 

you can add that user/musician as 'Portal user', who shall be treated as external user to odoo db; in a way that those users shall have different views & limited access, such as viewing confirmed orders, invoices etc.

الصورة الرمزية
إهمال