İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
6067 Görünümler

I have a custom module that adds features to the invoices, but I want to take an account models field and remove its invisible attribute. I know how to do this from developer mode, but I would like to enforce it with my invoicing module. 

Avatar
Vazgeç

Look how inheritance work in odoo: https://goo.gl/4Zyc9d

En İyi Yanıt

Inherit the view and use xpath with attributes tag

Eg:

<xpath expr="//field[@name='account_id']" position="attributes">

     <attribute name="invisible">False</attribute>

</xpath>

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Şub 25
3057
1
Kas 24
2862
1
Ara 23
2708
1
Nis 21
7838
6
Oca 24
15590