Skip to Content
Menu
This question has been flagged
1 Reply
4787 Views


I want to customize popup for odoo constraint warning message.

Existing :

                           Validation Error  

Field(s) holiday_status_id, date_from, date_to, state, number_of_days_temp failed against a constraint: The number of remaining leaves is not sufficient for this leave type

                           Error details:     

The number of remaining leaves is not sufficient for this leave type. Please verify also the leaves waiting for validation.

Customize :

                           Error details:     

The number of remaining leaves is not sufficient for this leave type. Please verify also the leaves waiting for validation.

 


please help me............

is it  possible?

Avatar
Discard
Best Answer

Hello Chirra,


I think You can Customize it  by changing _validate_fields Method.

You will find this in odoo --> openerp --> models.py (def _validate_fields

Thanks


Avatar
Discard