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
2328 Zobrazení

Dear Forum,

I have a field that is a many2many_tags field. I have two options in that field, one of them needs to be the default. However, I noticed that I cannot 'Set default' on a tag via the Developer Mode Icon. Another option I had was to go to the 'User-defined defaults'. I could set the field there, but if I choose '1' (ID=1), I cannot access the records at all anymore. It seems to be impossible to default a tag, anyone any idea?

Avatar
Zrušit
Nejlepší odpověď

Unfortunately there is no way to do it through the UI but you can try to modify the field by a custom module and set a default tag on the many2many field by the default attribute.

The only down side is it will be static and you will have to change it by code every time you want a different tag.



Happy to help :) an upvote will be awesome

Avatar
Zrušit
Autor

Weird workings of Odoo as usual. Thank you!

Related Posts Odpovědi Zobrazení Aktivita
0
čvn 23
1578
2
čvc 16
5092
1
dub 24
950
4
bře 24
6556
1
říj 23
2851