Odoo Help

Welcome!

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.

1

Can I add only one record in a form?

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

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)

Stats

Asked: 2/25/15, 4:12 AM
Seen: 546 times
Last updated: 3/16/15, 8:10 AM