Odoo Help


Error when I create wizard

on 12/16/13, 8:15 AM 1,572 views

Hi! I'm trying to create a wizard popup for OpenERP 7 but I have a problem when I install the module. It appears this error: arch: Invalid XML for view Architecture.

My code is: XML:

<record id="liquidacion_form_view" model="ir.ui.view">
        <field name="name">liquidacion.form</field>
        <field name="model">liquidacion</field>
        <field name="type">form</field>
        <field name="arch" type="xml">
            <form string="Liquidacion">
                    <separator colspan="4" string="General Information"/>
                    <field name="from_date" />
                    <field name="to_date" />
                    <group col="4" colspan="2">
                                <button special="cancel" string="Cancel" type="object"/>
                                <button name="_action_open_window" type="object" default_focus="1"/>

<act_window name="Liquidacion"


from osv import osv, fields

class liquidacion(osv.osv_memory):
    _name = "liquidacion" 

def _action_open_window(self, cr, uid, ids, context):
    return True

_columns = {
    'from_date': fields.date('From'),
    'to_date': fields.date('To'),



I have all this files in a new folder (wizard) with his __init__ file that contains this code: import wizard.liquidar

I don't know that's wrong... I'm following this tutorial that explain how do it for V6.1 and V7: doc.openerp.com/v6.1/developer/04_wizard.html/

Someone could see where is my error, please?

Thank you very much.

Post the server error trace. Did you import wizard in the __init__.py file of your module ?

Gopakumar N G
on 12/16/13, 9:10 AM

There isn't any trace. It appears the popup error telling the error: arch: Invalid XML for view Architecture I imported my py in the __init__file.py that it is in wizard folder

on 12/16/13, 9:33 AM

Ok, add "import wizard" in your module's __init__.py file where wizard in "import wizard" is the folder name wizard. And add version="7.0" in your form tag.

Gopakumar N G
on 12/17/13, 12:41 AM
Julio Serna
On 12/16/13, 1:14 PM

change this:

remove <field name="type">form</field>

and modify

<form string="Liquidacion" version="7.0">

Best regards

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 12/16/13, 8:15 AM
Seen: 1572 times
Last updated: 3/16/15, 8:10 AM