Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 311 |
Technical Name |
one2many_checkbox |
License | LGPL-3 |
One2Many Checkbox
Add checkboxes in the list views (tree) of One2many fields and execute actions on the selected records.

Features
-
Display a column of checkboxes in a one2many field.
-
Select multiple records directly from the list view.
-
Dynamic action button appears when one or more items are selected.
-
Execute custom actions via: - a wizard ( wizardActionId) - an ORM action ( ormAction)
-
Flexible configuration through widget options.
Use Cases
Here are some practical examples of using One2Many Checkbox :
-
Send multiple quotations - From a one2manyfield of quotations linked to a CRM opportunity. - The user selects several quotations and clicks “Send quotation(s)” to open an email sending wizard.
-
Validate lines - On a purchase order, the user can select multiple order lines and trigger an action to change their status (e.g., from “Draft” to “Confirmed”).
-
Mass deletion - On a vendor bill, the user selects multiple expense lines and clicks a “Delete lines” button that calls an ORM action.
These scenarios illustrate how to simplify mass actions inside a One2many field , without leaving the parent form view.
Installation
-
Copy the `one2many_checkbox` module into your Odoo addonsdirectory.
-
Update the module list:
odoo -u one2many_checkbox -d <database_name>
-
Activate the module from the Odoo interface: Apps → one2many_checkbox → Install
Usage
Example of using the widget in an XML view:
<field name="order_ids" widget="one2many_checkable" readonly="1" options="{ 'no_create_edit': True, 'no_open': True, 'label': 'Send quotation(s)', 'icon': 'fa-paper-plane', 'wizardActionId': 'crm_enova.action_quotation_send_multiple_mail_wizard' }"/>
Available options
Option |
Type |
Description |
---|---|---|
widget |
str |
Always one2many_checkable |
label |
str |
Button label displayed when 1+ lines are checked |
icon |
str |
Button icon (e.g. fa-paper-plane) |
wizardActionId |
str |
ID of the wizard to trigger when clicking the button |
ormAction |
str |
Name of the ORM action to call on the current record |
Important : wizardActionId and ormAction are optional, but at least one must be defined.
Behavior
Case 1: wizardActionId
The wizard receives the following arguments:
-
active_ids → Selected IDs from the one2many field
-
current_model → Model name of the parent record
-
current_model_id → ID of the parent record
Case 2: ormAction
The action is executed directly on the parent record, with the selected IDs passed as parameters.
Screenshot
Compatibility
-
Odoo 16, 17, 18
-
Other versions: may require minor adjustments.
Please log in to comment on this module