Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
6053 Prikazi

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
Opusti

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

Best Answer

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
Opusti
Related Posts Odgovori Prikazi Aktivnost
3
feb. 25
3041
1
nov. 24
2847
1
dec. 23
2683
1
apr. 21
7828
6
jan. 24
15585