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

Open custom view add an item element sale order

By
Diego Calzadilla
on 7/20/15, 2:03 PM 728 views

Hi odoo experts, I would like to open a custom view when clicking 'add an item' button, I have tried xml structure, I get no errors, but nothing changes in my sale order view:

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

        <openerp>

            <data>

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

                    <field name="name">sale.order.context</field>

                    <field name="model">sale.order</field>

                    <field name="mode">primary</field>

                    <field name="inherit_id" ref="sale.view_order_form"/>

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

                        <xpath expr="//field[@name='order_line']" position="attributes">

                            <attribute name="context">{'form_view_ref':'balerce_junio_2.view_search_products'}       </attribute>

                       </xpath>

                   </field>

               </record>

           </data>

</openerp>


It seems like form_view_ref is not amking any effect

Does anyone has a suggestion?





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: 7/20/15, 2:03 PM
Seen: 728 times
Last updated: 7/20/15, 2:03 PM