İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

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

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
documents spreadsheets #Honduras #cursobloqueado #leccionesterminadas
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
documents spreadsheets #Honduras #cursobloqueado #leccionesterminadas
About this forum
  1. Documents
  2. Forum

Add new fields inside documents inspector

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
documentsinspector
3 Cevaplar
5805 Görünümler
Avatar
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
Avatar
Vazgeç
Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

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
Avatar
Vazgeç
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?

Avatar
Alberto
En İyi Yanıt

How work in odoo 17?

0
Avatar
Vazgeç
Avatar
Gracious Joseph
En İyi Yanıt

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
Avatar
Vazgeç
Enjoying the discussion? Don't just read, join in!

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

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Windows Desktop Sync with Odoo Online Documents
documents
Avatar
Avatar
1
Ağu 25
815
Access rights for individual user workspaces
documents
Avatar
0
Mar 24
4174
Link Documents to Contacts
documents
Avatar
Avatar
Avatar
Avatar
3
Eki 24
6200
Odoo v16 Documents App. How can I manage versions of Documents?
documents
Avatar
0
Ağu 23
3878
How can I Edit InDesign documents in a web browser?
documents
Avatar
0
Mar 23
4170
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة 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, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

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