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.

0

I want to customize popup for odoo constraint warning message.

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


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