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

Error while trying to display a model's tree view

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
actiontreeviewact_window
1 Cevapla
8369 Görünümler
Avatar
arthur

Hello, I am trying to create a new model and display a tree view for its records. Right now I am creating a simple hello world, but am having some problems.

My Module's python code is the following:

class SubscriptionBasket(models.Model):
    _name="subscription.basket"

    test1 = fields.Char("test 1", default = "Hello")
    test2 = fields.Char("test 2", default = "World")

And the model's view is:

<?xml version="1.0" encoding="UTF-8"?>
<odoo>

    <record id="subscription_basket_tree_view" model="ir.ui.view">
        <field name="name">subscription.basket.tree</field>
        <field name="model">subscription.basket</field>
        <field name="arch" type="xml">
            <tree string="Test">
                <field name="test1"/>
                <field name="test2"/>
            </tree>
        </field>
    </record>

    <record id="action_show_subscription_basket_tree" model="ir.actions.act_window">
        <field name="name">Items de Cesta</field>
        <field name="res_model">subscription.basket</field>
        <field name="view_type">tree</field>
        <field name="view_mode">tree</field>
        <field name="view_id" ref="subscription_basket_tree_view"/>
        <field name="target">current</field>
    </record>

    <menuitem
        id="subscription_basket_menuitem"
        action="action_show_subscription_basket_tree"
        name="Itens de Cesta"
        parent="stock.menu_stock_root"
        sequence="100"
    />
</odoo>


The menu item with the label "Itens de Cesta" was displayed on the stock module, just as I wanted, but when I click it, expecting to load the model's tree view, I get the following error:

Error:

Uncaught TypeError: Cannot read property 'type' of undefined

http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:478

Traceback:

TypeError: Cannot read property 'type' of undefined

    at Class.get_default_view [as _super] (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:478:432)

    at Class.get_default_view (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:2192:227)

    at Class.get_default_view (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:3819:371)

    at Class.init (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:472:752)

    at Class.prototype.(anonymous function) [as init] (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:3816:488)

    at new Class (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:3817:65)

    at Object.widget (http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:451:80)

    at http://localhost:8069/web/content/13020-f14d50c/web.assets_backend.js:449:219

    at http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:802:681

    at fire (http://localhost:8069/web/content/12996-d7813a7/web.assets_common.js:796:299)


Can anyone point out what I am missing here?

Thank you!

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

Hi,

Please update the record with id action_show_subscription_basket_tree,

<record id="action_show_subscription_basket_tree" model="ir.actions.act_window">
<field name="name">Items de Cesta</field>
<field name="res_model">subscription.basket</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
<field name="view_id" ref="subscription_basket_tree_view"/>
</record>

Thanks

1
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
Identical trees in an action window
treeview act_window v14
Avatar
Avatar
1
Ağu 23
2441
[11.0] Perform actions for multiples sales.
action sales act_window
Avatar
Avatar
Avatar
3
Oca 19
4456
Why this action menu voice appears only in the sale order view? Çözüldü
action treeview odoo11
Avatar
Avatar
1
Kas 18
5352
[odoo-13]: How can i create new Action Drop-down in tree view Çözüldü
action treeview drop_down Odoo13.0
Avatar
Avatar
2
Ara 22
5801
Bulk update in the tree view through user interaction Çözüldü
action treeview routing Manufacturing Order
Avatar
Avatar
Avatar
Avatar
3
Ara 21
8531
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