跳至内容
菜单
此问题已终结

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. 

形象
丢弃

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

最佳答案

Inherit the view and use xpath with attributes tag

Eg:

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

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

</xpath>

形象
丢弃
相关帖文 回复 查看 活动
3
2月 25
3059
1
11月 24
2868
1
12月 23
2711
1
4月 21
7839
6
1月 24
15596