跳至内容
菜单
此问题已终结
1 回复
1692 查看

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

形象
丢弃
相关帖文 回复 查看 活动
1
3月 25
670
List view 已解决
1
2月 25
992
0
7月 24
4
1
3月 24
1171
0
2月 24
40