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.

1

How to View one2many field as a popup?

By
Mohammed Khamis
on 1/7/15, 9:53 AM 736 views

Hello every body,

I want to view one2many field as a pop up window in purchase requsition and my code in XML is

<field name="line_ids" > 
                           <form string="Products" editable="bottom">
                                <group> 
                                    <field name="product_id"/>
                                    <field name="product_qty"/>
                                    <field name="product_uom_id"/>
                                   <field name="company_id" groups="base.group_multi_company" />
                                </group>
                         </form> 
                        </field>

but this code not work and this field still view as a tree view So 

can you help me please?

I will thankful for your help

Remove editable="bottom"

oussama
on 1/8/15, 4:05 AM
0

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
3918
| 5 3 8
Puducherry, India
--Atchuthan - Technical Consultant, Sodexis Inc--
Passionate coder in Python/Odoo(formerly known as OpenERP).

Contact me via GMail: atchuthantu@gmail.com via Skype: atchuthan_skype
via Linkedin: http://in.linkedin.com/in/atchuthantu
Atchuthan - Technical Consultant, Sodexis Inc
On 1/8/15, 12:49 AM

You need to remove editable="bottom" from the TREE view.

<record model="ir.ui.view" id="view_purchase_requisition_form_inherit">
    <field name="name">purchase.requisition.form.inherit</field>
    <field name="model">purchase.requisition</field>
    <field name="inherit_id" ref="purchase_requisition.view_purchase_requisition_form" />
    <field name="arch" type="xml">
        <xpath expr="//field[@name='line_ids']/tree[@string='Products']"
            position="attributes">
            <attribute name="editable" eval="False"/>
        </xpath>
    </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

3 follower(s)

Stats

Asked: 1/7/15, 9:53 AM
Seen: 736 times
Last updated: 3/16/15, 8:10 AM