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

model is not created even though imported in __init__

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
modelstutorial
1 Cevapla
3537 Görünümler
Avatar
吴毅

This is the model file

from odoo import fields, models


class PropertyOffer(models.Model):

_name = 'longdick.estate.offer'
_description = 'Offers data of a property, One to Many relation. One: property, many: offers'

price = fields.Float(default = 500000, string = 'Offer Price', required = True)
status = fields.Selection(string = 'Offer Status',
default
= 'considering',
selection
= [
('accepted', 'Accepted'),
('considering', 'Considering'),
('negotiating', 'Negotiating'),
('refused', 'Refused'),
],
copy
= False)
offer_maker = fields.Many2one('res.partner', string = 'Offer Maker', required = True)
property = fields.Many2one('longdick.estate', string = 'Property', required = True)



==============================
This is my init file

from . import longdick_estate, \
longdick_estate_property_type, \
longdick_estate_property_tag, \
longdick_estate_offer

The first three models were just working fine, however, the fourth just couldn't be created
I even tried to reboot my PC, just not working.

I checked both technical setting and my database in postgreSQL, there's no my offer table.
However, estate/property_type/property_tag and estate&tag rel table are created properly.

I'm also sure about that my ir model access csv​ is set properly, as below:

id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
access_longdick_estate,longdick.estate,model_longdick_estate,base.group_user,1,1,1,1
access_longdick_estate_offer,longdick.estate.offer,model_longdick_estate_offer,base.group_user,1,1,1,1
access_longdick_estate_property_tag,longdick.estate.property.tag,model_longdick_estate_property_tag,base.group_user,1,1,1,1
access_longdick_estate_property_type,longdick.estate.property.type,model_longdick_estate_property_type,base.group_user,1,1,1,1

Furthermore, I'm using superuser mode, therefore, it's shouldn't be a problem, even if I have some typo in the access file.

Thanks for answering in advance!!!


@Mehjabin Farsana, Thank you miss mehjabin for answering my question so fast.
And sorry for replying your answer in such a way because I don't have enough karma points.
However, your answer doesn't quit solve my problem. Would you mind help me a little bit more?


Problem solved, I just uninstalled my App and then installed it. It began to work.





0
Avatar
Vazgeç
Avatar
Mehjabin Farsana
En İyi Yanıt

Hi,

Can you ensure that the model is created or not by checking in the Models menu under settings -> technical -> database structure -> models.

If it get added there and if you are talking about missing menu, please make sure that you have defined the access rights for your model in ir.model.access.csv file for users to access this model.

Points to check:
1. Ensure odoo service is restarted
2. python file is imported in the init
3. Module is upgraded in the db


Thanks

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
Odoo 'build a module'...Model not seen in my module
models model tutorial
Avatar
Avatar
4
Kas 20
7836
How can I use two models in an API (foreign key - relations)?
models
Avatar
0
Ara 24
2151
Import Data From Another Model Çözüldü
models
Avatar
Avatar
1
Mar 24
3267
how can i return a form view from a model method and i just want to show only a specific field instead of all the fields of this model ? Çözüldü
models
Avatar
Avatar
1
Haz 23
13429
Error al tratar de borrar un campo en un modelo.
models
Avatar
0
Oca 23
3761
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