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

Dear All,

In our project we are using both supplier invoice list view and sales invoice list view.

We have exposed supplier_invoice_number in the supplier invoice list view as one of the column. The supplier invoice number is visible in the supplier invoice list view correctly.

However, this column (supplier_invoice_number) is visible in the customer invoice list view also. I need to hide this column from the customer invoice list view. Requesting to help me to solve this issue.

Regards

Ảnh đại diện
Huỷ bỏ
Tác giả

I would appreciate any response as we are still unable to find a solution.

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

Hi,

You need to override the window action via xml file and pass a context something like 'supplier_invoice': True.

Next step would be using context on column level e.g <field name='supplier_invoice_number' invisible="context.get('supplier_invoice', False)">

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 1 24
13802
6
thg 1 17
6672
3
thg 11 24
3292
2
thg 5 24
2565
2
thg 3 15
5081