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

Recently, we've added some columns to improve the quality of life during our daily operations on odoo. We've added fields like "variant_count", "is_quote_only", "freight_markup" into Inventory, Product List View.

But, I can't remember if those were added via Studio as a related field, or added directly via xml codes in Edit List View under the Developer mode.


However, our I.T encountered issues when trying to update the modules.  Then, I.T suggested that we don't add in customised columns.


So, my question is, is there no safer way to add columns into List Views? If so, what's the purpose of having Studio or Developer Mode?  Maybe I've missunderstood the nature of these functionalites.

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

ref: Studio adds an xpath so that makes it safer and will work 90% with any update. 10% a field will be moved,renamed and will affect this change.

Editing directly through the xml is not recommended and will for sure cause you more trouble when updating, and if it updates correctly will erase alll made changes 


https://www.reddit.com/r/Odoo/comments/ywij4o/comment/iwk28kz/?utm_source=share&utm_medium=web2x&context=3


other way is to use extension view with xpath to add new field.

ref: https://www.youtube.com/watch?v=9Sy2SxQEkSk

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
Persist sorting order when navigating แก้ไขแล้ว
1
มี.ค. 25
675
List view แก้ไขแล้ว
1
ก.พ. 25
995
0
ก.ค. 24
4
1
มี.ค. 24
1179
0
ก.พ. 24
40