Odoo Help


Promotional code in product.pricelist case-insensitive

on 6/3/15, 12:04 PM 483 views

Hello community

I currently have a webshop set-up. Defined a pricelist to give a 10%discount on some products.

I made the promocode 'ODOOISBEST'. Now, the people that will be using this won't always know it is case sensitive, so rather than displaying a message about the code being case-sensitive, I'd like to change the evaluation of input and value to evaluate lower-case values.

I looked in the code and js of website_sale but with no luck. I just can't seem to find what gets called when I click the confirm button to check for the pricelist.

I found that in main.py (controller) of website_sale there is a method called pricelist. But this does't do the comparison, just checks whether the prices should be updated or not. 

I need the specific code where the system does the comparison.

Any help would be greatly appreciated

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 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.


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)


Asked: 6/3/15, 12:04 PM
Seen: 483 times
Last updated: 6/3/15, 12:04 PM