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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2
Replies
3797
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Odoo 13. Don't close a wizard when Click a button
Diselesaikan
|
|
4
Mei 24
|
12681 | |
|
1
Apr 24
|
3311 | ||
|
0
Nov 23
|
2033 | ||
Blank White Page After log in to Odoo13
Diselesaikan
|
|
1
Sep 23
|
2119 | |
How can I translate Options in Selection.field?
Diselesaikan
|
|
2
Agu 23
|
4515 |