Odoo Help


Show one2many field in customized form (not in popup) [SOLVED]

on 7/14/14, 9:42 AM 3,793 views

I am having one2many field. It is showing me "Add an item" link. I am having following requirements. Please help.

1. I am having around 30 fields related to this one2many fields and appears in pop-up when i click on "Add an item" link. I want to show all of them without pop-up means on the space itself where this "Add an item" link appears.

2. I want to addonly one record for this not more than that. So how to restrict.

The thing is i want to achieve one2one functionality using this. Please suggest if any other solution suits my requirement.

Thanks in advance!!!

On 10/8/14, 1:52 AM

I have fixed this issue using one2one (indirectly by inheritance by deligation). Please check here : https://www.odoo.com/forum/help-1/question/one2one-relation-in-openerp-solved-56780


Dhinesh - Technical Consultant, Sodexis Inc

--Dhinesh - Technical Consultant, Sodexis Inc--
| 5 4 9
Pondicherry, India
--Dhinesh - Technical Consultant, Sodexis Inc--

Passionate coder in Python/OpenERP. Knows Django/Flask MVC frameworks. Did code in Java, PHP.

Contact me at: dvdhinesh.mail@gmail.com

Dhinesh - Technical Consultant, Sodexis Inc
On 7/14/14, 10:16 AM

Hi you can specify what are all the fields shown in one2many popup.

In py,

'field_name': fields.one2many( 'model_name', string="one2many"),

In xml,

<field name="field_name">
                            <tree string="Demo">
                                <field name="field_name" />
                            <form string="Demo" version="7.0">
                                        <field name="field_name" />


Or you can make the tree view itself editable like,

<field name="One2many_field_name" >
                                    <tree editable="bottom">
                                        <field name="name"/>                                       

As far as I know you can not switch to form view without a pop-up or new window.

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

1 follower(s)


Asked: 7/14/14, 9:42 AM
Seen: 3793 times
Last updated: 3/16/15, 8:10 AM