Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2587 มุมมอง

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.

อวตาร
ละทิ้ง