İç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 occurred while validating the field(s) arch: Invalid XML for View Architecture! while installing a module .

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
moduleinstallviewarchitecturevalidateerror
2 Cevaplar
9451 Görünümler
Avatar
sneha antony

I tied to install a module which I developed including the warranty details of a customer.It was working fine until I added a grid structure under the form,so that the respective dates for the preventive maintenance can be scheduled.When I altered the code for this purpose the below error appears when I try to install the module.

Validate Error Error occurred while validating the field(s) arch: Invalid XML for View Architecture!.

I couldn't trace out the error in .xml file(perhaps in .py file also).Both the files are attached .Can anyone please help me in sorting out the error and complete my requirement of placing a grid under the form view.

warranty_info_view.xml

    <?xml version="1.0" encoding="utf-8"?>
     <openerp>
      <data>


  <!--Warranty search view-->
  <record model="ir.ui.view" id="warranty_search">
    <field name="name">warranty.search</field>
    <field name="model">warranty.warranty</field>
    <field name="type">search</field>
    <field name="arch" type="xml">
      <search string = "warranty information search">
        <field name="name" string = "Name"/>
        <field name="contract" string = "Contract"/> 
       </search>
    </field>
  </record>



 <!--Warranty tree View-->
  <record id="warranty_warranty_tree" model="ir.ui.view">
    <field name="name">warranty.result.tree</field>
    <field name="model">warranty.warranty</field>
    <field name="type">tree</field>
    <field name="arch" type="xml">
      <tree string="warranty_result">  
        <field name="name"/>  
        <field name="contract"/>
    <field name="batch_no"/> 
        <field name="status"/>  
        <field name="serial_no"/>
        </tree>
    </field>
</record>




  <!--Warranty Form View-->
<record id="warranty_warranty_form" model="ir.ui.view">
    <field name="name">warranty.result.form</field>
    <field name="model">warranty.warranty</field>
  <!--<field name="type">form</field>-->
    <field name="arch" type="xml">
      <form string="Warranty_result" version="7.0">  
      <sheet>
       <group>
        <group>
         <field name="name"/>  
         <field name="contract"/>
     <field name="batch_no"/> 
         <field name="status"/>  
         <field name="serial_no"/>
         <field name="notes" /> 
        </group>
        </group>
      <notebook>
     <page string="Preventive Maintenance">
                        <field name="line_ids">
                            <tree string="Pm">
                                <field name="date"/>
                                <field name="pm_status"/>
                            </tree>
                        </field>
                    </page>
     </notebook>
    </sheet>
    </form>
    </field>
 </record>

  <!--Warranty Action-->
<record id="action_warranty_warranty" model="ir.actions.act_window">
    <field name='name'>Warranty Details</field>
    <field name='res_model'>warranty.warranty</field>
    <field name='view_type'>form</field>
    <field name='view_mode'>tree,form</field>
</record>


   <!--Warranty Menu-->
 <menuitem id="warranty_parent" name="Warranty"/>
 <menuitem id="menu_warranty_parent" name="Warranty Management" parent="warranty_parent"></menuitem>
 <menuitem action="action_warranty_warranty" id="menu_warranty_warranty" parent="menu_warranty_parent"   string="Result"/>
     </data>
 </openerp>

warranty_info.py

 from openerp.osv import osv, fields

  class warranty_warranty(osv.osv):

_name = 'warranty.warranty'

_columns = {
    'name':fields.many2one('res.partner','Customer Name'),
'contract':fields.many2one('account.analytic.account','Contract'),
'batch_no':fields.char('Batch No.'),
'status':fields.selection([('open','Open'),('close','Close')],'Warranty Status'),
'serial_no':fields.char('Serial No.'),
'notes':fields.text('Details'),

  }

  warranty_warranty()

   class order(osv.osv): 

_description = "Orders" 

_name = "order.order"

_columns = {
    'line_ids': fields.one2many('order.line','ordr_id',"Order Lines"),
    'date': fields.date('Date'),
    'pm_status': fields.selection([('pending','Pending'),('complete','Complete')],'Preventive Maintenance Status'),
} 

order()

 class order_line(osv.osv):

_description = "Order Line" 

_name = "order.line"

_columns = {
'ordr_id': fields.many2one('order.order', 'Order ID'),
}

order_line()
0
Avatar
Vazgeç
Avatar
Maniganda
En İyi Yanıt

The Problem with these lines of code <page string="Preventive Maintenance"> <field name="line_ids"> <tree string="Pm"> <field name="date"/> <field name="pm_status"/> </tree> </field> </page>

here the field name 'line_ids' does not exist in warranty.warranty object so you are getting the error

I you want to fix the error you should remove the complete page tag i.e <page string="Preventive Maintenance"> and upgrade your module

or If you want that line_id in your form then create a one2many field line_ids in warranty.warranty object and upgrade the module the error will be rectified

0
Avatar
Vazgeç
sneha antony
Üretici

So Maniganda,What should be done to rectify the error?

sneha antony
Üretici

Can u please suggest the changes to be made in the code?

sneha antony
Üretici

I tried as per your instructions but still the error occurs when I try to install the module

Maniganda

Have you removed the <notebook> tag from your xml

sneha antony
Üretici

I tried and still the same error is being shown

Avatar
Med Said BARA
En İyi Yanıt

Hi;

Look closely in your log before the line (some lines before) "Validate Error Error occurred while validating the field(s) arch: Invalid XML for View Architecture!.", you will find more info about the error (and then post your log).

look also at the end of your .py file: _columns is ordr_id or order_id

for Maniganda: line_ids is there !!!

0
Avatar
Vazgeç
sneha antony
Üretici

There is nothing in the error log other than the line " Validate Error Error occurred while validating the field(s) arch: Invalid XML for View Architecture! ".The error is shown inside a box which appears when I click Install.It some error in the .py and .xml files.As I am not that well aware of python coding,if somebody suggest me the changes to be made in the code files please,it would be a great favour.

Med Said BARA

Look in your openerp-server.log file. Under Linux you can find it at /var/log/openerp/openerp-server.log. under Windows it's at ..Drive letter:\Program Fi...)\openerp ....\server\server\openerp-server.log

sneha antony
Üretici

so are my .py and .xml files correct?

Med Said BARA

There are maybe a parsing error in your xml (malformed xml). But before any conclusion look first for the error in openerp-server.log

sneha antony
Üretici

I tried for a long to debugg the issue but in vain.So I removed the complete module and is reworking on the code now.My requirement is I want to add a grid structire under the form with two columns date and status.What are the code changes that are to be made in my present .py and .xml files?

Med Said BARA

what about openerp-server.log ?

sneha antony
Üretici

where can I find it?I am using ubuntu server.Modules are installed in opt/openerp/server/openerp/addons

Med Said BARA

Here: /var/log/openerp/openerp-server.log

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
error on clicking 'Install'-ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!
module install view one2many validateerror
Avatar
Avatar
1
Mar 15
5861
Can't install custom module -> arch: Invalid XML for View Architecture! Çözüldü
module xml install architecture invalid
Avatar
Avatar
Avatar
4
Kas 15
6706
Validate error while module installation
module install validateerror cmms v6v7
Avatar
0
Mar 15
5948
odoo-14: I get an error when I try to install a module in Digital Ocean Çözüldü
module install
Avatar
Avatar
1
Nis 21
6618
Unable to install module Çözüldü
module install
Avatar
Avatar
2
Nis 15
5408
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