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

Is there a way to use a field of a certain model in attrs attribute without showing that specific field in the view form?

This is the error:

Field 'type_name' used in attrs ({'invisible': [('type_name', '=', 'Invoice')]}) must be present in view but is missing.

Many thanks!

Аватар
Отменить
Лучший ответ

Hi 

Make sure that the field type_name is present in view,otherwise add the following code in view record 

<field name="type_name" invisible="1"/>


Regards

Аватар
Отменить
Автор Лучший ответ

Thank you, I just make the field to be invisible so that it doesn't show on the view form

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
янв. 24
23660
0
авг. 23
2582
5
сент. 21
17949
3
янв. 21
17803
0
дек. 19
4190