Odoo Help


Can I add only one record in a form?

aneesh ATEES Infomedia Pvt Ltd
on 2/25/15, 4:12 AM 622 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



| 5 3 8
Pondicherry, India
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>

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 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: 622 times
Last updated: 3/16/15, 8:10 AM