Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

error on clicking 'Install'-ValidateError Error occurred while validating the field(s) arch: Invalid XML for View Architecture!

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
moduleinstallviewone2manyvalidateerror
1 Odpowiedz
5868 Widoki
Awatar
sneha antony

I developed a module in openerp 7 and added the module to the addons folder thru /opt/openerp/server/openerp/addons.When the modules list is updated,the new module is visible in the installed modules list.The issue is when i click the Install Button in the module,there appears an error like this ,in a box. ValidateError

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

I tried for a long to debug the issue but didn't find the real problem yet.It seems that the problem is with the .xml file(or maybe .py file).Both the files are attached.

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'),
    'line_ids': fields.one2many('order.line','ordr_id',"PREVENTIVE MAINTENANCE"),

}

warranty_warranty()

class order_line(osv.osv):

_description = "Order Line" 

_name = "order.line"

_columns = {
'ordr_id': fields.many2one('warranty.warranty', 'ID'),
'date': fields.date('Date'),
'pm_status': fields.selection([('pending','Pending'),('complete','Complete')],'Preventive Maintenance Status'),

}

order_line()

warrranty_info_view.xml

<openerp> <data>

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

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

<record id="warranty_warranty_form" model="ir.ui.view"> <field name="name">warranty.result.form</field> <field name="model">warranty.warranty</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="Preventive Maintenance" editable="bottom"> <field name="date"/> <field name="pm_status"/> </tree> </field> </page> </notebook> </sheet> </form> </field> </record>

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

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

0
Awatar
Odrzuć
Awatar
sridhar
Najlepsza odpowiedź

<openerp> <data>

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

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

<record id="warranty_warranty_form" model="ir.ui.view"> <field name="name">warranty.result.form</field> <field name="model">warranty.warranty</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> <notebook> <page string="Preventive Maintenance"><group> <field name="line_ids"> <tree string="Preventive Maintenance" editable="bottom"> <field name="date"/> <field name="pm_status"/> </tree> </field> </page> </notebook> </group></group> </sheet> </form> </field> </record>

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

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

Try this .xml it will be work.

0
Awatar
Odrzuć
sneha antony
Autor

This seems to be my same code.Is there any change with that of mine?

sneha antony
Autor

I tried with the code which you provided.But the same error appears

sridhar

see the terminal, they tell which field is missing. some changes in that code.

sneha antony
Autor

I tried with the code you provided.But still the same error is repeating

sridhar

now try that

sneha antony
Autor

the code you gave?

sridhar

i updated the code.

sneha antony
Autor

the code which you gave as anwer has been tried.But the error still exists

Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
Error occurred while validating the field(s) arch: Invalid XML for View Architecture! while installing a module .
module install view architecture validateerror
Awatar
Awatar
Awatar
2
mar 15
9462
Validate error while module installation
module install validateerror cmms v6v7
Awatar
0
mar 15
5965
odoo-14: I get an error when I try to install a module in Digital Ocean Rozwiązane
module install
Awatar
Awatar
1
kwi 21
6622
How to display a field in a view from a different model?
view one2many
Awatar
Awatar
Awatar
Awatar
Awatar
7
sie 25
35410
Unable to install module Rozwiązane
module install
Awatar
Awatar
2
kwi 15
5411
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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