Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2386 Представления

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!

Related Posts Ответы Просмотры Активность
0
июн. 23
1616
2
июл. 16
5173
1
апр. 24
1010
4
мар. 24
6691
1
окт. 23
2961