Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2332 Lượt xem

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?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Weird workings of Odoo as usual. Thank you!

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 6 23
1580
2
thg 7 16
5098
1
thg 4 24
954
4
thg 3 24
6560
1
thg 10 23
2856