Odoo Help

1

Can I add only one record in a form?

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

Hi,

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

2
Vasanth
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>
        </record>

0
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.

Register

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)

Stats

Asked: 2/25/15, 4:12 AM
Seen: 869 times
Last updated: 7/27/17, 3:24 PM