Odoo 12 Development Cookbook - Third Edition
by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
How it works...
You already know most of what happens here. We define a view, of the tree type this time, and attach it to our action with an ir.actions.act_window.view element. So, the only thing left to discuss is the tree element and its semantics. With a list, you don't have many design choices, so the only valid children of this element are the field and button elements. These follow the same semantics as earlier, except that there are fewer choices to make regarding widgets; the only really interesting choices are progressbar, many2onebutton, and handle. The first two behave like their form namesakes. handle is specific to list views. It is meant for integer fields and renders a drag handle that the user can use to drag a row to a different ...
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.
Read now
Unlock full access