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

cant solve this error - ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
2 Cevaplar
7045 Görünümler
Avatar
Praveen S

*__init__.py*

import person

__openerp__.py

{
    'name': 'Person Data Storage',
    'version': '2.0',
    'author': 'Praveen',
    'depends': ['base'],
    'data': [  # data files to load at module install
        'view/menu.xml',  
    ], 
    'demo': [],  # demo data (for unit tests)
} 

person.py

from osv import osv, fields

    class person(osv.Model):
        _name = 'person.person'
        _columns = 
{
                       'name': fields.char('Name', size = 100), 
                       'dob': fields.date('Date of birth'),
                       'father_name': fields.char('Father Name', size = 100),
}
     person()

menu.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
       <menuitem id="person_main_menu" name="Persons"/>



     <record id="person_person_tree_view" model="ir.ui.view">
        <field name="name">person.person.tree</field>
        <field name="model">person.person</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="Persons">
                <field name="name"/>
                <field name="dob"/>
                <field name="father_name"/>
            </tree>
        </field>
    </record>

    <record id="person_person_form_view" model="ir.ui.view">
        <field name="name">person.person.form</field>
        <field name="model">person.person</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Persons">
                <field name="name"/>
                <field name="dob"/>
                <field name="father_name"/>
            </form>
        </field>
    </record>

    <record id="person_normal_action" model="ir.actions.act_window">
        <field name="name">Person</field>
        <field name="res_model">person.person</field>
        <field name="view_type">form</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem id="section_main_menu" parent="person_main_menu" name = "View"/>
        <menuitem id="person_real_menu" parent="section_main_menu" action="person_normal_action"/>

    </data>
</openerp>
0
Avatar
Vazgeç
Avatar
Ghanshyam Prajapati
En İyi Yanıt

Hey Praveen,

are you working in OpenERP 7 version??, If yes then you should do following changes,

  • Remove <field name="type">form</field> from form view.

  • Replcae <form string="Persons"> with <form string="Persons" version="7.0">

  • Replace from osv import osv, fields with from openerp.osv import osv, fields

from openerp.osv import osv, fields

person.py

class person(osv.Model):
    _name = 'person.person'
    _columns = {
       'name': fields.char('Name', size = 100), 
       'dob': fields.date('Date of birth'),
       'father_name': fields.char('Father Name', size = 100),
}

menu.xml

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <menuitem id="person_main_menu" name="Persons"/>

         <record id="person_person_tree_view" model="ir.ui.view">
            <field name="name">person.person.tree</field>
            <field name="model">person.person</field>
            <field name="arch" type="xml">
                <tree string="Persons">
                    <field name="name"/>
                    <field name="dob"/>
                    <field name="father_name"/>
                </tree>
            </field>
        </record>

        <record id="person_person_form_view" model="ir.ui.view">
            <field name="name">person.person.form</field>
            <field name="model">person.person</field>
            <field name="arch" type="xml">
                <form string="Persons" version="7.0">
                    <group>
                        <field name="name"/>
                        <field name="dob"/>
                        <field name="father_name"/>
                    </group>
               </form>
            </field>
        </record>

        <record id="person_normal_action" model="ir.actions.act_window">
            <field name="name">Person</field>
            <field name="res_model">person.person</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form</field>
        </record>

        <menuitem id="section_main_menu" parent="person_main_menu" name = "View"/>
        <menuitem id="person_real_menu" parent="section_main_menu" action="person_normal_action"/>

    </data>
</openerp>

Hope it work for you.

1
Avatar
Vazgeç
Praveen S
Üretici

thanks Ghanshyam Prajapati for your replay the same error occurs after replacing all of the above

Ghanshyam Prajapati

Hi Praveen, if my answer solved your problem, then please mark this answer as solved, Thanks.

Ghanshyam Prajapati

have you updated your module, after made changes?? please restart your server and then update your module.

Praveen S
Üretici

same error occurs when me try to install this module after replacing all of the above fields

Ghanshyam Prajapati

Hey Praveen I installed your module with my changes and its working fine. See my updated answer

Praveen S
Üretici

but it doesn't work for me pls share your work files

Ghanshyam Prajapati

https://www.dropbox.com/s/fhor2fx6blp8onr/test_module.zip download my module. and please mark my answer as solved if your problem is solved, Thanks. :)

Praveen S
Üretici

Your module was successfully working. But i didn't find the error in my module. If you know it pls help me.

Avatar
Alec Mouti
En İyi Yanıt

I have been having that error problem for weeks now. I changed the view as suggested by many still no luck. I even removed openerp and installed the current release. I hope this thread can find solution to my problem.

0
Avatar
Vazgeç
Praveen S
Üretici

is it worked for u

Alec Mouti

No, It did not work. I believe there is something else that is causing this error apart from xml views. example, I managed to install custom hotel management module in earlier opener 7.0 releases without problem. I then removed openerp and reinstalled the stable openerp 7.0 release. now I cannot install the same custom Hotel module because of this error. nothing has change regarding custom Module. this tells me that the problem might be a bug. thus why Ghanshyam Prajapati can install the same module while you cannot

Praveen S
Üretici

Hi Alec Mouti, I got the solution when me deleted all the data regarding to the current module,delete the module from add ones and restarted the server. Then i copied the module to addone and updated then installed. Its now working. Hopes it will helps you too

sneha antony

I installed the same module with the updated code as a new module.But my issue is the module is not shown in the Installed Modules list though it is there in the addons folder of my openerp 7.What can be done to resolve this issue

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