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

Hi,

I would like to ask if I need to inherit the entire object class if I only need to modify/add views to it? For example, I need to modify the Stock Move tree view to hide some columns. I can do this via the web client but if there are too many modifications I would like to create a module for it then inherit the view instead.

However, the module comes with the .py file and it should contain the object class of the view I am inheriting, so in return I would inherit the entire object class of stock.move even though I am not adding fields or modifying functions.

Its possible for a module to only have .py file but is it possible also to only have the .xml file?

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

You just need a .xml file with your new views or the inherited views. You need to create a .py file only if you want to add / change fields or methods of your model.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Select multiple elements with XPath แก้ไขแล้ว
5
ส.ค. 24
47556
2
เม.ย. 24
3045
3
มิ.ย. 23
6887
2
มิ.ย. 23
5312
3
มี.ค. 23
10800