Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')

By
karlos
on 9/2/13, 1:56 PM 2,578 views

I've been stuck in this error since 4 hours ago. I searched everywhere, copy the right solutions, but nothing changes.

class jobsopen(osv.osv):
    _name = 'jobsopen.jobsopen'
    _columns = {
                    'name':fields.char('Name', size=20, required = True),
               }    
<?xml version="1.0"?>
<openerp>
    <data>
        <record id="jobsopen_jobsopen_tree_view" model="ir.ui.view">
        <field name="name">jobsopen.jobsopen.tree</field>
        <field name="model">jobsopen.jobsopen</field>
        <field name="arch" type="xml">
            <tree string="Jobs">
                <field name="name"/>
            </tree>
        </field>
    </record>
    </data>
</openerp>

I already tried to put:

 <field name="type">tree</field>

But it continues not to work.

If you are debugging, please post the entire error.

GH Mediacloud, Grover Menacho
on 9/2/13, 2:17 PM
0
kaynis
On 9/2/13, 2:08 PM

for one you do not have an ending for you class. Did you create all the other required files, __init__.py and openerp.py and in the openerp.py, did you declare the to update the view of module? Restart your server and reload the module in the web client. Restarting help update the python while reloading or upgrading the module in the web client will ensure your xml view is updated

0
karlos
On 9/2/13, 2:50 PM

Hey guys,

Primarily, thanks for the fast answer. I just solved the issue. It seems that I wasn't put the right terms in the XML. Said this, my tree now look like this, and it's working perfectly.

<record model="ir.ui.view" id="jobsopen_tree">
        <field name="name">jobsopen.tree</field>
        <field name="model">jobsopen.jobsopen</field>
        <field name="type">tree</field>
        <field name="arch" type="xml">
            <tree string="jobsopen tree">
                <field name="name"/>
            </tree>
        </field>
    </record>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/2/13, 1:56 PM
Seen: 2578 times
Last updated: 6/27/16, 3:08 AM