Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

Invalid XML for View Architecture , problem with my new module

Subscribe

Get notified when there's activity on this post

This question has been flagged
modulenewmodule
4 Replies
6483 Views
Avatar
sanaa tayb

Hello every one , i'm a new in the Openerp Community i have a problem with a module i just created , every time i try to install it the error appears : ValidateError Une erreur est apparue lors de la validation du/des champ(s) arch: Invalid XML for View Architecture! " .... Any ideas plzz ?

here is my code:

patient.py

from openerp import addons 
from osv import fields, osv
import time

class patient(osv.osv):
    _name='patient'
    _description='dossier administratif du patient'

    _columns={
                'name' : fields.char('numero d`adhesion', size=30, required=True),
                'cin_patient' : fields.char('CIN', size=30),
                'date_dinscription' : fields.date('Date d`inscription'),
                'num_dossier' : fields.char('numero de dossier', size=30, required=True),
                'nom' : fields.char('Nom', size=30, required=True),
                'prenom' : fields.char('Prenom', size=30, required=True),
                'date_de_naissance' : fields.date('Date de naissance'),
                'sexe' : fields.char('Sexe', size=30),
                'profession' : fields.char('profession', size=30, ),
                'niveau_scolaire' : fields.char('niveau scolaire', size=30),
                'status' : fields.selection([('Celibataire','celibataire'), ('Married','married')]),
                'nb_enfant' : fields.char('Nombre d enfants', size=30),
                'num_fix' : fields.char('Numero de Tel fix', size=30),
                'num_por' : fields.char('Numero de Tel Portable', size=30),
                'adresse' : fields.text('adresse'),
                'cin_assure' : fields.char('CIN de l assure', size=30),
                'non_assure' : fields.char('Nom de l assure', size=30),
                'prenon_assure' : fields.char('prenom de l assure', size=30),
                'type_relation' : fields.char(' ralation avec le patient', size=30),
                'num_assure' : fields.char('Numero d affiliation a une caisse d assurance ', size=30),
                'nom_mutuelle' : fields.char('le nom de la mutuelle', size=30),
                'date_fin' : fields.char('date de fin de la mutuelle ', size=30),
                'proprietaire' : fields.char('etes-vous proprietaire?', size=30),
                'nb_famille' : fields.char('nombre de famille sous le meme toit?', size=30),
                'nombre_chambre' : fields.char('nombre de chambre', size=30),
                'eau' : fields.char(' vous disposez deau?', size=30),
                'electricite' : fields.char('vous disposez delectricite? ', size=30),
                'television' : fields.char('vous disposez de television?', size=30),
                'refrig' : fields.char('vous disposez d un refrigerateur? ', size=30),


    }

patient()

xml file:

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<menuitem name="Patient" id="menu_patients_parent"/>
<menuitem name="Patients" id="menu_patients_parent1" parent="menu_patients_parent"/>



<record model="ir.ui.view" id="patient_form_view">
        <field name="name">patient.form</field>
        <field name="model">patient</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Patient" version="7.0">
                <sheet>

                        <notebook>
                            <page string="Public Information">
                                <group>
                                    <group string="Contact Information">
                                        <field name="name"/>
                                        <field name="cin_patient"/>
                                        <field name="date_dinscription"/>
                                        <field name="num_dossier"/>
                                        <field name="nom"/>
                                        <field name="prenom"/>
                                        <field name="date_de_naissance"/>
                                        <field name="sexe"/>
                                        <field name="profession"/>
                                        <field name="niveau_scolaire"/>
                                        <field name="status"/>
                                        <field name="nb_enfant"/>
                                        <field name="num_fix"/>
                                        <field name="num_por"/>
                                        <field name="adresse"/>
                                    </group>
                                </group>
                            </page>
                            <page string=" Information sur le logement">
                                <group>
                                    <group string=" Maison et logement">
                                        <field name="proprietaire"/>
                                        <field name="nb_famille"/>
                                        <field name="nombre_chambre"/>
                                        <field name="eau"/>
                                        <field name="electricite"/>
                                        <field name="television"/>
                                        <field name="refrig"/>

                                    </group>
                                </group>
                            </page>
                            <page string=" Assurence/prise en charge">
                                <group>
                                    <group string=" Information de l'assure">
                                        <field name="cin_assure"/>
                                        <field name="non_assure"/>
                                        <field name="prenon_assure"/>
                                        <field name="type_relation"/>
                                        <field name="num_assure"/>
                                        <field name="nom_mutuelle"/>
                                        <field name="date_fin"/>

                                    </group>
                                </group>
                            </page>
                        </notebook>
                </sheet>    
            </form>
        </field>
</record>

<record model="ir.actions.act_window" id="action_notebook_form">
    <field name="name">patient</field>
    <field name="res_model">patient</field>
</record>



<menuitem  parent="menu_patients_parent1" id="notebook_menu_mainform" action="action_notebook_form"/>
</data>
</openerp>
0
Avatar
Discard
Avatar
AJ Schrafel Paper Corp
Best Answer

look in the log file, it should specifically tell you want the problem is. depending on your installation method it could be /var/log/openerp/ - filename -

Also stop - start your server, then upgrade your module to make sure you are running the latest version you uploaded

1
Avatar
Discard
sanaa tayb
Author

i installed the latest version of openerp (openerp 7) on my windows , could you plz tell me where i can find the log file ??

Thanks for your help and answer :)

Ray Carnes

server\openerp-server.log

sanaa tayb
Author

File "C:\Program Files\OpenERP 7.0-20130422-232436\Server\server.\openerp\osv\orm.py", line 1937, in __view_look_dom_arch except_orm: ('View error', u"Can't find field 'code' in the following view parts composing the view of object model 'patient':\n * patient.tree\n\nEither you wrongly customized this view, or some modules bringing those views are not compatible with your current data model") 2013-05-10 16:34:24,046 1856 ERROR Avicennefr openerp.tools.convert: Parse error in file:///C:/Program%20Files/OpenERP%207.0-20130422-232436/Server/server/openerp/addons/Nouveau%20dossier%20%20d/patient

sanaa tayb
Author

this is the error i found in the log file :s

Avatar
Ray Carnes
Best Answer

Can't find field 'code' in the following view parts composing the view of object model 'patient':\n * patient.tree

So the problem is in the treeview definition, which you didn't share with us. Your patient model has no code field, but your treeview is using it.

1
Avatar
Discard
AJ Schrafel Paper Corp

i agree with ray

sanaa tayb
Author

Thanks for your response...

Avatar
sanaa tayb
Author Best Answer

i installed the latest version of openerp (openerp 7) on my windows , could you plz tell me where i can find the log file ??

Thanks for your help and answer :)

0
Avatar
Discard
Avatar
Borni DHIFI
Best Answer

I have tested your module it works without problem. restart your server and go Setting>>Modules>>Update Module List.

0
Avatar
Discard
sanaa tayb
Author

i did all those steps and it didn't work :s

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Can anyone please help me with creating a simple module in openERP 7 and i kindly request for links for videos that explains abo
module newmodule
Avatar
Avatar
1
मार्च 15
2634
OpenERP module xml ValidateError
module newmodule
Avatar
Avatar
1
मार्च 15
8153
Please help me creating a simple module in open erp 7
module newmodule
Avatar
Avatar
1
मार्च 15
2656
Error "Invalid XML for View Architecture" in custom form view Solved
module newmodule
Avatar
Avatar
Avatar
Avatar
Avatar
5
जन॰ 24
16881
pictures fields on openerp7
module newmodule new
Avatar
Avatar
1
मार्च 15
4862
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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