Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1681 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
bře 25
669
List view Vyřešeno
1
úno 25
991
0
čvc 24
4
1
bře 24
1162
0
úno 24
40