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 806 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

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

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