Skip to Content
Menu
This question has been flagged

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!

Avatar
Discard
Author Best Answer

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.

Avatar
Discard
Best Answer

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 > RulesCreate

FieldValue
Modelmail.message
Domain Filter[('attachment_ids', '!=', False)]
ActionMove attachments to folder
FolderYour target folder (eg, "Chatter Docs")
OwnerLeave blank or set as needed
Apply OnChoose where this should apply

i hope it is use full


Avatar
Discard

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.

Related Posts Replies Views Activity
10
Feb 16
9746
0
May 24
1824
42
Apr 23
128208
1
Jun 16
5833
0
Feb 16
4695