Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1674 Prikazi

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.

Avatar
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
mar. 25
657
1
feb. 25
991
0
jul. 24
4
1
mar. 24
1156
0
feb. 24
40