Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6077 Visualizzazioni

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
Abbandona

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

Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
feb 25
3059
1
nov 24
2869
1
dic 23
2711
1
apr 21
7839
6
gen 24
15597