Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
2812 Переглядів

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
23734
0
серп. 23
2618
5
вер. 21
18014
3
січ. 21
17939
0
груд. 19
4222