Odoo Help

1

Odoo8. Can't override the method of stock module

By
Keywoker
on 2/10/15, 3:56 AM 653 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

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

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