Skip to Content
Menu
This question has been flagged

Hi there,

I have documents in the "Documents" module. When I view them as a list, there are a couple of other fields I would like to be able to add to my documents, retrospectively. For example, the documents automatically have a creation date for when I uploaded the document.

I want a "Relevant Date" because that PDF could be for an event which happened months ago. So, in the Studio I managed to create a field called "Relevant Date". I may need more fields in the future.

Once the field is created and I leave the studio, it is blank for all the documents which is what iI wanted. However, there is no way for me to edit the value? It stays blank for all documents, I can't change it at all and I spent hours tinkering to try and modify the value!

How can I do that? Please help.

(Sorry I do not have enough karma to post pictures..).

Avatar
Discard
Best Answer

Hi Marc Eynaud,

In the Odoo document module, there isn't a default option to edit fields created through Studio or a Form view. If you urgently need to edit a custom field, you must enable debug mode and access the corresponding view from the technical section in the settings. Then, remove the js_class='documents_list' attribute and change create=true in the tree tag of the view. By making these adjustments, you can edit each field in the tree view. However, please note that modifying this structure will result in the loss of the Document Inspector mode section from the right-side panel of the tree view (although it remains available in the kanban view if needed).


Alternatively, you can create a custom module and customize the Document Inspector mode to add custom fields as needed, ensuring a better user experience.


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
2
Feb 23
2074
2
Nov 24
402
1
Apr 25
1140
1
Feb 25
990
1
Feb 24
2821