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

Hi all,


I set my custom module inherit one existing module, and using "@api.depends(<field-from-inherited-module>) def <function-name>", but found a Key error that from the field from inherited module. But it seem well if I re-declare the field (I had copied fully codes of the field from the original module to my module). I would like to know is there a way to call the fields from inherited module to custom module?


Thanks.

Qho


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Ensure that you added dependency to first one 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Thanks. Sorry for my minor mistake.

I found that I wrongly inherited the custom module to module-B and that should be module-A.


Thanks a lot.

Qho


อวตาร
ละทิ้ง