تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5306 أدوات العرض

This should be an easy one, yet...


I'm trying to disable a whole view. Naturally, I try to do the same thing i would do for menus, reports, etc.: I define a view using the same identifier as the original view and I only change the field I want...


<record id="hr_holidays.view_employee_form_leave_inherit" model="ir.ui.view">

    <field name="active" eval="0"/>

</record>


Unfortunately, this won't do the trick...

Any ideas, please?

الصورة الرمزية
إهمال

I'm not a developer, but I would xpath to the main "div" of the view and replace it with nothing.

أفضل إجابة

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


الصورة الرمزية
إهمال
الكاتب

That would work if I were trying to hide a form field called "active".

I want to change the value of "active" in the view definition, so that it won't be taken into consideration by Odoo when loading views.

المنشورات ذات الصلة الردود أدوات العرض النشاط
4
يناير 24
23267
Attrs attribute تم الحل
2
يناير 24
2556
0
أغسطس 23
2353
5
سبتمبر 21
17636
3
يناير 21
16963