İç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

How to search for methods inside models

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
modulestechnical
3 Cevaplar
93 Görünümler
Avatar
Marcos Perez

Good morning,

Database: V19

I'm getting frustrated with the following, so any help would be greatly appreciated.

I have a scheduled action that calls a method that was supposed to have been added with the modification of the account.move model by an inheritance module.

For some reason, I can't get it to work, but the first thing I want to know is if there's a way to verify that the method was added correctly.

Thank you very much in advance.

0
Avatar
Vazgeç
Avatar
Cybrosys Techno Solutions Pvt.Ltd
En İyi Yanıt

Hi,

To verify if a method was correctly added to the account.move model via inheritance in Odoo 19, use the Odoo shell to inspect the model directly with dir(move). Check the module's __manifest__.py for dependencies, ensure the module is installed and updated, and look for naming conflicts.

Review the inheritance code for correct model inheritance and method definition. Verify the scheduled action's configuration, clear the Odoo cache, and check the Odoo log file for errors. If the method is listed in the shell's output, it's been added; try calling it to confirm it executes correctly.


Hope it helps

1
Avatar
Vazgeç
Marcos Perez
Üretici

I'm sorry, but could you explain it in a little more detail, step by step?

I think I understand what you're talking about, but I don't fully understand some parts.

Avatar
Ray Carnes (ray)
En İyi Yanıt

Use the new /doc URL endpoint?

  1. Navigate to your Odoo 19 instance
  2. Ensure you are logged in as ADMIN
  3. Remove /odoo from the URL and replace it with /doc 


https://www.zbeanztech.com/blog/general-11/api-documentation-url-in-odoo-19-runtime-documentation-193


1
Avatar
Vazgeç
Marcos Perez
Üretici

I read it on another site and when I tried to check if it worked, it didn't show me the modified method.

Avatar
Bloopark systems GmbH & Co. KG
En İyi Yanıt
Hello,
Yes, it is possible to verify whether your custom function exists in the sale.order model. 
Please follow the steps below:

Step 1: Add the verification function to your model file
Insert the following method into the model file where your custom function is defined:

@api.model
def _cron_check_custom_function(self):
"""Check if a function exists on the custom model"""

model = self.env['sale.order'] # put your desired model here
method = "post_create_process" # your function name here

# Check on class, not on recordset
if hasattr(type(model), method):
_logger.info("✔ Function '%s' FOUND !!!!", method)
else:
_logger.warning("✘ Function '%s' NOT found !!!!", method)
return True

Step 2: Create a Scheduled Action

Create a new scheduled action and select the model where you want the function to run.

In the Python Code field, enter:
code to paste in the cron job:

model._cron_check_custom_function()

Step 3: Execute and Review Logs
Run the scheduled action manually and check the server logs to confirm whether the function was detected.

hope it helps.
1
Avatar
Vazgeç
Marcos Perez
Üretici

This idea could work well, but the problem I have with it is that it's not a native feature. But I'll keep it in mind.

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
where can i find user name and password and why it asks for Çözüldü
technical
Avatar
Avatar
Avatar
2
Eyl 25
1714
Nuevo menú en "CRM"
modules
Avatar
Avatar
Avatar
Avatar
3
Tem 25
2759
Allow Access to update module
modules
Avatar
Avatar
Avatar
Avatar
3
May 25
4631
Identify and terminate specific user's sessions
technical
Avatar
Avatar
Avatar
2
Kas 24
3836
How to add my course or college name listing
technical
Avatar
Avatar
1
Tem 24
2080
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