コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2358 ビュー

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?

アバター
破棄
最善の回答

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

アバター
破棄
著作者

Weird workings of Odoo as usual. Thank you!

関連投稿 返信 ビュー 活動
0
6月 23
1605
2
7月 16
5149
1
4月 24
999
4
3月 24
6610
1
10月 23
2928