Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
documents spreadsheets #Honduras #cursobloqueado #leccionesterminadas
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
documents spreadsheets #Honduras #cursobloqueado #leccionesterminadas
Despre acest forum
  1. Documents
  2. Forum

Add new fields inside documents inspector

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
documentsinspector
3 Răspunsuri
5766 Vizualizări
Imagine profil
reham almahroom

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")  



0
Imagine profil
Abandonează
Imagine profil
Cybrosys Techno Solutions Pvt.Ltd
Cel mai bun răspuns

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

1
Imagine profil
Abandonează
Tom Rubino

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?

Imagine profil
Alberto
Cel mai bun răspuns

How work in odoo 17?

0
Imagine profil
Abandonează
Imagine profil
Gracious Joseph
Cel mai bun răspuns

To add a new field inside the Documents Inspector panel in Odoo, as shown in the provided image, you can achieve this by customizing the documents.document model and the corresponding inspector view. Here’s how you can add a field step-by-step:

1. Enable Developer Mode

  1. Go to Settings > General Settings.
  2. Activate Developer Mode (find the option in the settings menu or from your user menu dropdown).

2. Add a Custom Field to the documents.document Model

You need to add a custom field to the model that powers the Documents module.

Option 1: Using Studio (Enterprise Only)

  1. Navigate to Documents > Configuration > Documents.
  2. Open Odoo Studio (if available).
  3. Drag and drop a new field into the form view for documents.
  4. Save the changes.

Option 2: Using a Custom Module (Community or Enterprise)

If you're using Odoo Community or prefer to work with code:

  1. Create a custom module or use an existing one.
  2. Add the following code to extend the documents.document model:
    from odoo import models, fields
    
    class DocumentsDocument(models.Model):
        _inherit = 'documents.document'
    
        custom_field = fields.Char(string="Custom Field")
    
  3. Update your module by running:
    odoo-bin -u your_module_name
    

3. Add the Field to the Documents Inspector View

The Documents Inspector panel is a special view tied to the documents.document model. You need to extend this view to include your custom field.

  1. Create a new XML file in your custom module, e.g., views/documents_inspector_view.xml.
  2. Add the following code to include the custom field:
    <odoo>
        <record id="view_document_inspector_inherit" model="ir.ui.view">
            <field name="name">documents.inspector.inherit</field>
            <field name="model">documents.document</field>
            <field name="inherit_id" ref="documents.documents_inspector_sidebar_view"/>
            <field name="arch" type="xml">
                <xpath expr="//div[@class='o_inspector_body']" position="inside">
                    <div>
                        <field name="custom_field" placeholder="Enter custom value here"/>
                    </div>
                </xpath>
            </field>
        </record>
    </odoo>
    
  3. Update your module to apply the changes:
    odoo-bin -u your_module_name
    

4. Verify the Changes

  1. Navigate to the Documents app.
  2. Select a document and open the Inspector Panel (the right-hand side panel).
  3. You should now see your custom field displayed in the panel.

5. Optional: Make the Field Editable or Dynamic

  • To make the field editable directly in the Inspector panel, ensure the field is not readonly.
  • If you need additional logic, such as dynamically setting the field value or adding validation, you can use Python methods or JavaScript.

6. Troubleshooting

  • If the changes do not appear:
    • Clear the Odoo cache by restarting the server.
    • Refresh your browser or clear the browser cache.
  • Check the Odoo logs for errors if the inspector panel does not load.

Let me know if you encounter any issues or need further assistance!

0
Imagine profil
Abandonează
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Windows Desktop Sync with Odoo Online Documents
documents
Imagine profil
Imagine profil
1
aug. 25
781
Access rights for individual user workspaces
documents
Imagine profil
0
mar. 24
4140
Link Documents to Contacts
documents
Imagine profil
Imagine profil
Imagine profil
Imagine profil
3
oct. 24
6196
Odoo v16 Documents App. How can I manage versions of Documents?
documents
Imagine profil
0
aug. 23
3874
How can I Edit InDesign documents in a web browser?
documents
Imagine profil
0
mar. 23
4160
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now