Skip to Content
Menu

One2Many multi select action widget

by
Odoo

46.70

v 18.0 Third Party
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 311
Technical Name one2many_checkbox
LicenseLGPL-3
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 311
Technical Name one2many_checkbox
LicenseLGPL-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 :

  1. 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.

  2. 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”).

  3. 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

  1. Copy the `one2many_checkbox` module into your Odoo addonsdirectory.

  2. Update the module list:

    odoo -u one2many_checkbox -d <database_name>
  3. 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.

Author & License

  • Author : Portailpro

  • License : LGPL-3.0

  • Contact : https://www.portailpro.net

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.