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

How to fix view inheritance ?

By
Zahin
on 6/13/14, 6:54 AM 419 views

Hello,

I had a module which have view

        <record id="sale.view_order_form" model="ir.ui.view">
            <field name="name">sale.order.form</field>
            <field name="model">sale.order</field>
            <field name="arch" type="xml">
                <form string="Sales Order" version="7.0">
                    <header>

Now I want to inherit this view and want to add few fields, How to  ????

0

Nehal

--Nehal--
2090
| 5 2 8
Ahmadabad, India
--Nehal--
Nehal
On 6/13/14, 7:35 AM

Hi,

Refer the example:

        <record model="ir.ui.view" id="sale_order_form_payment">
                <field name="name">sale.order.form.payment</field>
                <field name="model">sale.order</field>
                <field name="inherit_id" ref="sale.view_order_form"/>
                <field name="arch" type="xml">
                    <field name="partner_id" position="after">
                        <field name="test"/>
                    </field>
                </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: 6/13/14, 6:54 AM
Seen: 419 times
Last updated: 3/16/15, 8:10 AM