| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 561 |
| Technical Name |
web_x2many_list_enhanced |
| License | LGPL-3 |
Search View, Selectors and Action Menus for x2many list in Odoo 17 form view.
This module enhances one2many/many2many list behavior inside form view. It keeps native one2many features (Add a line, Add a section, Add a note) and adds listview-like UX for selecting records and executing actions.
Main Features
- Show SearchBar on x2many list with real Search View support.
- Show row selectors (checkboxes) on x2many list.
- Show Action Menu for selected lines.
- Show model-bound server actions in x2many Action Menu.
- Support custom batch actions via field options.
- Compatible with section_and_note_one2many workflow.
Screenshot
Quick Usage
Use it on a one2many field (example):
<field name="order_line"
widget="section_and_note_one2many"
options="{
'x2many_enable_selection': True,
'x2many_enable_search_view': True,
'x2many_enable_action_menus': True
}">
<tree editable="bottom">
...
</tree>
</field>
Field Options
- x2many_enable_selection: enable selectors (default: True)
- x2many_enable_search_view: enable SearchBar/Search View (default: True)
- x2many_enable_action_menus: enable Action Menu (default: True)
- x2many_search_view_id: custom search view id
- x2many_list_view_id: custom list view id for loading bound actions
- x2many_search_menu_types: search menu types (default: ['filter', 'favorite'])
- x2many_custom_actions: custom batch actions list
Custom Action Option Format
'x2many_custom_actions': [
{
'name': 'method_name_or_action_xmlid',
'string': 'Action Label',
'type': 'object', # object | action
'multi': True, # allow multi selected records
'reload': True # reload list after execution
}
]
Contact
Skype: live:hieuhoangminh1996
Email: hieuhoangminh1996@gmail.com
Email subject should begin with
[Odoo Module]
Please log in to comment on this module