Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
1811 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Feb. 23
2081
2
Nov. 24
402
1
Apr. 25
1155
1
Feb. 25
995
1
Feb. 24
2834