Availability |
Odoo Online
Odoo.sh
On Premise
|
Technical Name |
web_x2many_selectable |
License | AGPL-3 |
Multiple selection for x2many
Just add the widget 'x2many_selectable' on any one2many or many2many field to display checkboxes for each record and add an action button.
How it works
The button added on top of the tree, when pressed, will call a python function alongwith the selected resords as arguments. Both model and the python function name can be changed from javascript. I have added comments in the JS file (/web_x2many_selectable/static/src/js/widgets.js).
Sample Python Function
@api.multi
def bulk_verify(self):
for record in self:
print record
Screenshot

Please log in to comment on this module