İç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)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Finding code in master code and addons

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
viewsv7inherit
3 Cevaplar
8389 Görünümler
Avatar
greg

Hi All,

My question is on finding code within all of the master code and addons. I'll use a simple example.

I was working on a simple module to change a label on the product.product_normal_form_view.

On the product.product_normal_form_view as shown on the screen there is a label that says "EAN13 Barcode" In looking at the Debug View of product.product_normal_form_view there is nowhere that the label "EAN13 Barcode" shows up. So I figure that there must be a module that has inherited this view and changed/added this label, or some other code that has made this modification.

But when I do a full file search of all of the code and addons I don't see where "EAN13 Barcode" is used, other than in some point of sale module javascript. I am using windows file search and have it set to search file contents.

So the question is what is the correct way to find existing code, and is there any code in the entire system that would not be exposed/found using a simple in depth file search?

Maybe if someone can tell me where the label "EAN13 Barcode" comes from that would point me in the right direction.

Thanks!

0
Avatar
Vazgeç
Avatar
Sudhir Arya (ERP Harbor Consulting Services)
En İyi Yanıt

Here Product View you will find ean13 field in product_normal_form_view.

3
Avatar
Vazgeç
greg
Üretici

Yes I see that, but where is the label "EAN13 Barcode" set as the label?

Avatar
Gustavo
En İyi Yanıt

Enable the "developer mode" on the About menu, then hover the object you want to modify. That will give you the information about the model (class name) you want to work with. Then you have to go to Settings > Customization > Database Structure and locate the model. In the model form you will find the information about the modules that create and maintain the model you wish to modify

1
Avatar
Vazgeç
Avatar
greg
Üretici En İyi Yanıt

Thank you for the information on where to find the applicable model.

I did as you suggested and used Settings > Customization > Database Structure > Models to locate the model, in this case the Field Name "ean13" is in the product.product model/module.

I do see under Settings > Customization > Database Structure > Models / Product that the field named "ean13" has a Field Label of "EAN13 Barcode", but when I look through the code @ OPENERP/ADDONS/PRODUCTS/ I cannot find the XML file that sets this Field Label.

I would expect to see something like:

<field name="ean13"/>
<label for="EAN13 Barcode"/>

But I can not find the applicable code.

Any assistance is appreciated.

UPDATE: I now see where the "EAN13 Barcode" is set...

In the product.py code the _columns include: 'ean13': fields.char('EAN13 Barcode', size=13, help="International Article Number used for product identification."),

UPDATE 2: WINDOWS does not normally search the contents of .py files. To make windows search the contents of a .py file do the following (From AgentPete answers.mircosoft.com)

a. Hit the start button and type "search" in the search box. b. Select "Change How Windows Searches" c. Hit "Advanced" d. Select the "File Types" tab. e. Make sure the file extension for the files you want to search in is on the list and is set to "Index Properties and File Contents"

Hope this helps someone

1
Avatar
Vazgeç
greg
Üretici

I have updated with my answer

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
What is the different between col and colspan? Çözüldü
views v7
Avatar
Avatar
1
Eki 24
70344
What does the "no_open : True" widget option do in a view definition? Çözüldü
views v7
Avatar
Avatar
2
Ara 23
26805
How to use a new field added in a inherited model into a view?
views inherit
Avatar
Avatar
Avatar
3
Ağu 22
12802
How do I search by country_id in view? Çözüldü
views v7
Avatar
Avatar
1
Eki 21
10194
Why does the custom view code doesn't show up? Çözüldü
views inherit
Avatar
Avatar
Avatar
2
Şub 19
4912
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