Help

0

Change existing field's vie attribute by custom module

Avatar
C S

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. 

1 备注
头像
丢弃
Avatar
Sehrish
-

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

1 答案
2
Avatar
Mahmoud Abdelwahid
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>

头像
丢弃