Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3998 Lượt xem

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?





Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 24
1282
1
thg 4 24
3546
1
thg 12 22
3251
What is wizard ? Đã xử lý
3
thg 11 23
32103
4
thg 7 25
4819