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

Custom Module Issue - Add Field to Event Registration Module

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
modulefieldcustomeventregistration
1 Cevapla
11011 Görünümler
Avatar
Santiago

Hi!

I created a custom module to add a field to the Event Registration Form, I need a text field where we can input more details for each registered user to an X event.

So far I have develop the following module:

  • add_fields_events (folder)
  • __init__.py
  • __openerp__.py
  • code.py
  • view.xml

Each one with the following simple code:

__init__.py

import code

__openerp__.py

    {
    'name' : 'Custom Extra Event Fields',
    'version' : '1.0',
    'description' : """Custom Extra Fields for Event Module""",
    'depends' : ['event'],
    'init_xml' : [], 
    'update_xml' : ['view.xml'],
    'demo_xml' : [],
    'active' : False, 
    'installable' : True,
}

code.py

from osv import osv, fields

class res_partner_add_text_field(osv.osv):
    _inherit = 'event.registration'

    _columns = {
        'textual_field' : fields.text('Details'),
    }

view.xml

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>            
        <record model="ir.ui.view" id="view_event_form_add_text_field">
            <field name="name">view.event.form.add.text.field</field>
            <field name="model">event.registration</field>
            <field name="inherit_id" ref="view_event_registration_form"/>
            <field name="arch" type="xml">
                <field name="email" position="after">
                    <field name="textual_field" />
                </field>
            </field>
        </record>
    </data>
</openerp>

Everything seems to be alright, but i get the following error when trying to install:

ValueError: No such external ID currently defined in the system: add_event_fields.view_event_registration_form

Any ideas? The "view_event_registration_form" is the id inside of event_view.xml - View which i would like to change.

Thanks in advance!

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

Seems i got the solution.

Reading and watching from other examples I realize that in OpenERP, you have to inherit from the same (folder - file) "structure" that is in the addons folder, so based on that the right parameter in code.py is:

class res_partner_add_text_field(osv.osv):
    _inherit = 'event.event'

In the other hand in the view.xml the "event." property must be included as part of the refence, so the right code would be:

<field name="inherit_id" ref="event.view_event_registration_form"/>

So there you go, my initial experience with custom modules.

Do you have any other advice? Thanks!

2
Avatar
Vazgeç
mike

No advice for you but your post was instructive to me as I am also a newbie with custom modules. Thanks for the helpful examples!

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
Custom Module Not Populating in Apps List Çözüldü
module custom
Avatar
Avatar
4
Eki 20
9992
There is no registration button on Web event
event registration
Avatar
1
Mar 15
4986
How does event registration by email?
event registration
Avatar
0
Mar 15
5529
no Online registration in Odoo8 event!
event registration
Avatar
0
Mar 15
4240
For Odoo hosted version, how would I upload a custom module? Çözüldü
module upload custom
Avatar
Avatar
Avatar
Avatar
3
Şub 24
11588
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