Hi,
we recently upgraded to odoo 18. if a user uploads a document in the chatter it is only visible for them in the chatter. it is not b´visible in the ddouments appeventhought the folder has the visiblity set as editor for all internal users. only the document with system administratore can viewthe attachments in the documents app. the other user and administrator of the documets cannot view it.
why is it ? and how to solve this?
any help would be appreciated. thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
This was due to a mixin used in crm and sales. in odoo 18 when using mixins there is this method that sets the rights to none for the docs beings uploaded.
def _get_document_vals_access_rights(self):
""" Return access rights values to create a `documents.document`
In the default implementation, we give the minimal permission and rely on the propagation of the folder
permission but this method can be overridden to set more open rights.
Authorized fields: access_via_link, access_internal, is_access_via_link_hidden.
Note: access_ids are handled differently because when set, it prevents inheritance from the parent folder
(see specific document override).
"""
return {
'access_via_link': 'none',
'access_internal': 'none',
'is_access_via_link_hidden': True,
}
by overriding this method and returning null it takes the rights from the parent folder.
Hii,
Ensure the Document Folder is Shared Properly
Go to Documents > Configuration > Workspaces :
- Open the folder you want to use
-
Check:
- Allowed Groups → should include Employees or the group of your users
- Access Rights → should be Editor for those users
Create a Document Rule to Capture Chatter Attachments
Go to: Documents > Configuration > Rules → Create
Field | Value |
---|---|
Model | mail.message |
Domain Filter | [('attachment_ids', '!=', False)] |
Action | Move attachments to folder |
Folder | Your target folder (eg, "Chatter Docs") |
Owner | Leave blank or set as needed |
Apply On | Choose where this should apply |
i hope it is use full
This seems like it was created using AI / LLM. I don't think there are "rules" for documents in Odoo 18 - can you share a screenshot? There are access rights for workspaces in Odoo 17, but not Odoo 18.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
10
de febr. 16
|
9746 | ||
|
0
de maig 24
|
1824 | ||
|
42
d’abr. 23
|
128209 | ||
|
1
de juny 16
|
5833 | ||
|
0
de febr. 16
|
4696 |