콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2585 화면

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

아바타
취소
베스트 답변

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

아바타
취소