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

"Wrong value for ir.ui.view.type: 'field'" while parsing

By
Jithin
on 8/19/16, 8:38 AM 342 views

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

<openerp>

    <data>

        <record model="ir.ui.view" id="product_parts_list_view_form">

            <field name="name">product part</field>

            <field name="model">product.parts</field>

            <field name="arch" type="xml">

                <field name="name"/>

            </field>

        </record>

        <record model="ir.actions.act_window" id="product_part_list">

            <field name="name">Part</field>

            <field name="model">product.parts</field>

            <field name="view_type">tree,form</field>

        </record>

    </data>

</openerp>

2
Ajeet Yadav
On 8/20/16, 12:47 AM

I think you not mentioned tree or form before defining fields name. Below is the correct one- 

<record model="ir.ui.view" id="product_parts_view_form">

<field name="name">product part</field>

<field name="model">product.parts</field>

<field name="arch" type="xml">

<form>

    <field name="name"/>

</form>

</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: 8/19/16, 8:38 AM
Seen: 342 times
Last updated: 9/5/16, 7:09 AM