Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6058 Widoki

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. 

Awatar
Odrzuć

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

Najlepsza odpowiedź

Inherit the view and use xpath with attributes tag

Eg:

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

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

</xpath>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
lut 25
3056
1
lis 24
2862
1
gru 23
2707
1
kwi 21
7838
6
sty 24
15590