This question has been flagged
1 Reply
2924 Views

I have two group by fields - field 1 and field 2.

And two subdivisions for field 1.

When i select field 1 -- subdivision 1/subdivision 2 -->it shows the corresponding result.

If i select field 2 -- subdivision 1/subdivision 2 --> I need to dispaly an alert message. How should i display an alert box in search view?

Avatar
Discard
Best Answer

Create an on_change method for field 2 that always returns/displays an error message. Depending on the Odoo version you are using the code might differ slightly.

Avatar
Discard
Author

I'm using openerp 7. How can we call onchange method in search view?