Odoo Help


Odoo8. Can't override the method of stock module

on 2/10/15, 3:56 AM 777 views

Hi everyone

I try to override method of stock module which is for getting filters for inventory adjustments. See my code on http://pastebin.com/BhJT82aY

I wrote to my __init__ file to import my *.py file and I pointed the dependence of stock module in __openerp__ file.

But Odoo uses the original, stock module method, not mine.

What's wrong with my actions?

Thank you




| 5 3 6
Jakarta, Indonesia
On 2/10/15, 4:57 AM

_get_available_filters is used by a function field.  If you want your code to be 'executed' you need to redefine that field as well in your py file.

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: 2/10/15, 3:56 AM
Seen: 777 times
Last updated: 4/6/15, 6:08 AM