Skip to Content
Menu
This question has been flagged
1 Reply
6054 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>

Avatar
Discard
Best Answer

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>

Avatar
Discard