Odoo Help


Can I add only one record in a form?

aneesh ATEES Infomedia Pvt Ltd
on 2/25/15, 4:12 AM 909 views


I need to restrict add only one record in to a form. After adding the first record create option should be disabled.

Thanks a lot

On 2/25/15, 5:50 AM

Hi Aneesh ,

try this:


        <record model="ir.actions.act_window" id="child_action">
            <field name="name">res.partner</field>
            <field name="view_type">form</field>
            <field name="limit">2</field>
            <field name="view_mode">tree,form</field>

Alfred Munoz
On 7/27/17, 3:24 PM

This is not a real solution because it only hides the entries above the limit, but it doesn't limit the entries.

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: 2/25/15, 4:12 AM
Seen: 909 times
Last updated: 7/27/17, 3:24 PM