Skip to Content
Menu
This question has been flagged
1 Odpoveď
1793 Zobrazenia

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
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
feb 23
2077
2
nov 24
402
1
apr 25
1151
1
feb 25
991
1
feb 24
2823