Skip to Main Content
Odoo 12 Development Cookbook - Third Edition
book

Odoo 12 Development Cookbook - Third Edition

by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
April 2019
Beginner to intermediate content levelBeginner to intermediate
774 pages
24h 59m
English
Packt Publishing
Content preview from Odoo 12 Development Cookbook - Third Edition

How it works...

In steps 1 and 2, we registered a new type of view, called m2m_group, in ir.ui.view and ir.actions.act_window.view.

In step 3, we added the get_m2m_group_data method in the base. Adding this method in the base will make that method available in every model. This method will be called via an RPC call from the JavaScript view. The view will pass two parameters—the domain and m2m_field. In the domain argument, the value of the domain will be the domain generated with a combination of the search view domain and the action domain. The m2m_field is the field name by which we want to group the record. This field will be set on the view definition.

In the next few steps, we added the JavaScript files that are required to form the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Odoo 11 Development Cookbook - Second Edition - Second Edition

Odoo 11 Development Cookbook - Second Edition - Second Edition

Alexandre Fayolle, Holger Brunn
Odoo 14 Development Cookbook - Fourth Edition

Odoo 14 Development Cookbook - Fourth Edition

Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis

Publisher Resources

ISBN: 9781789618921Supplemental Content