Odoo 12 Development Cookbook - Third Edition
by Parth Gajjar, Alexandre Fayolle, Holger Brunn, Daniel Reis
There's more...
While you can do basically anything with the record element, there are shortcut elements that make it more convenient for the developer to create certain kinds of records. These include menu item, template, or act window. Refer to Chapter 10, Backend Views, and Chapter 16, CMS Website Development, for information about these.
A field element can also contain the function element, which calls a function defined on a model to provide a field's value. Refer to the Invoking functions from XML files recipe for an application in which we simply call a function to directly write to the database, circumventing the loading mechanism.
The preceding list misses entries for 0 and 1, because these are not very useful when loading the data. ...
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