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.

1

Odoo8. Can't override the method of stock module

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

--Ivan--
3210
| 5 3 6
Jakarta, Indonesia
--Ivan--
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.

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