Odoo Help


How to View one2many field as a popup?

Mohammed Khamis
on 1/7/15, 9:53 AM 1,100 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">
                                    <field name="product_id"/>
                                    <field name="product_qty"/>
                                    <field name="product_uom_id"/>
                                   <field name="company_id" groups="base.group_multi_company" />

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"

on 1/8/15, 4:05 AM

Atchuthan - Technical Consultant, Sodexis Inc

--Atchuthan - Technical Consultant, Sodexis Inc--
| 5 5 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']"
            <attribute name="editable" eval="False"/>

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


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