This question has been flagged
1 Reply
268 Views

can you help me please to add a new field inside documents inspector 
(add field inside black side of document information "that shown in below image")  



Avatar
Discard
Best Answer

Hi,

To add a field in document inspector, You need to push the field to inspectorFields. /** @odoo-module */
import { inspectorFields} from "@documents/views/inspector/documents_inspector";

inspectorFields.push("accessed_user_ids");


After that you can call the field in the XML using Xpath. The template name is documents.DocumentsInspector.documentsInfo.


Hope it helps

Avatar
Discard

could you be a bit more specific on how to do that please? Right now I have the field as x_studio_document_name. When you say push the field what does that mean?