Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
6073 Lượt xem

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. 

Ảnh đại diện
Huỷ bỏ

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

Câu trả lời hay nhất

Inherit the view and use xpath with attributes tag

Eg:

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

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

</xpath>

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 2 25
3059
1
thg 11 24
2868
1
thg 12 23
2709
1
thg 4 21
7838
6
thg 1 24
15594