This question has been flagged

Hi All,

Here i need a solution for some restriction.I have an object called base.modules(fields are name, technical name,product_id).In opportunity i will display one2many with this field. If base.modules table has 2 records like Record1, Record2, I have selected Record1 and again i dont allow to select same record on that form, but i can allow it in another form(another ID). How to restrict.Please give me solution.

Thanks in advance.

Avatar
Discard

Hi,

In second form means? Are you working with wizard or you u want only one product in one record.

You can make that product inactive, once its selected, this is the one way to do so.

Or elaborate how you want and how is your code?

Best Answer

you can use on_change method

Avatar
Discard