Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3806 มุมมอง

I have created a list view and it contains the columns which i want to show their.But i need only that rows in the tree view which i checked the checkbox. I have applied the invisibility attribute in the view but it is showing the invisible rows in the tree view. I am getting stuck. Kindly help me out.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Use domain on the action to filter the rows (records) see below code.

< record id = "action_move_in_refund_type" model = "ir.actions.act_window" >
< field name = "name" > Refund </ field >
< field name = "res_model" > account.move </ field >
< field name = "view_mode" > tree, kanban, form </ field >
< field name = "view_id" ref = "view_invoice_tree" />
< field name = "search_view_id" ref = "view_account_invoice_filter" />
< field name = "domain" > [('type', '=', 'in_refund')] </ field >
< field name = "context" > {'default_type': 'in_refund'} </ field >
</ record >


See: <field name = "domain"> [('type', '=', 'in_refund')] </ field>

this domain will apply and records will get filter accordingly.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

Problem solved. Thank you so much Amit.

อวตาร
ละทิ้ง

Good to hear. Please give a positive vote.

Related Posts ตอบกลับ มุมมอง กิจกรรม
4
พ.ค. 24
12690
1
เม.ย. 24
3316
0
พ.ย. 23
2036
Blank White Page After log in to Odoo13 แก้ไขแล้ว
1
ก.ย. 23
2130
2
ส.ค. 23
4519