Skip to Content
Menu
This question has been flagged

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
Discard

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
Discard
Related Posts Replies Views Activity
3
Feb 25
3059
1
Nov 24
2868
1
Dec 23
2709
1
Apr 21
7838
6
Jan 24
15593