跳至內容
選單
此問題已被標幟
1 回覆
6082 瀏覽次數

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
3108
1
11月 24
2893
1
12月 23
2724
1
4月 21
7869
6
1月 24
15623