Odoo Help


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.


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

on 7/14/14, 9:42 AM 2,099 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.

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)


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