Odoo Help

0

I want to customize popup for odoo constraint warning message.

By
chirra
on 12/9/15, 12:07 AM 1,350 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?

1
Swapnesh
On 12/11/15, 1:10 PM

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


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: 12/9/15, 12:07 AM
Seen: 1350 times
Last updated: 12/11/15, 1:10 PM